Searched refs:gcd (Results 1 - 33 of 33) sorted by relevance

/linux-4.4.14/lib/
H A Dgcd.c2 #include <linux/gcd.h>
6 unsigned long gcd(unsigned long a, unsigned long b) gcd() function
21 EXPORT_SYMBOL_GPL(gcd); variable
H A Dlcm.c2 #include <linux/gcd.h>
10 return (a / gcd(a, b)) * b; lcm()
H A Dbch.c771 dbg("gcd(%s,%s)=", gf_poly_str(a), gf_poly_str(b)); gf_poly_gcd()
845 struct gf_poly *gcd; factor_polynomial() local
856 /* compute g = gcd(f, tk) (destructive operation) */ factor_polynomial()
858 gcd = gf_poly_gcd(bch, f2, tk); factor_polynomial()
859 if (gcd->deg < f->deg) { factor_polynomial()
860 /* compute h=f/gcd(f,tk); this will modify f and q */ factor_polynomial()
861 gf_poly_div(bch, f, gcd, q); factor_polynomial()
863 *h = &((struct gf_poly_deg1 *)f)[gcd->deg].poly; factor_polynomial()
864 gf_poly_copy(*g, gcd); factor_polynomial()
H A DMakefile27 gcd.o lcm.o list_sort.o uuid.o flex_array.o iov_iter.o clz_ctz.o \
/linux-4.4.14/include/linux/
H A Dgcd.h6 unsigned long gcd(unsigned long a, unsigned long b) __attribute_const__;
H A Dmpi.h113 /*-- mpi-gcd.c --*/
/linux-4.4.14/sound/core/
H A Dpcm_timer.c23 #include <linux/gcd.h>
41 l = gcd(mult, rate); snd_pcm_timer_resolution_change()
47 l = gcd(rate, fsize); snd_pcm_timer_resolution_change()
/linux-4.4.14/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_afmt.c27 #include <linux/gcd.h>
61 div = gcd(n, cts); amdgpu_afmt_calc_cts()
H A Damdgpu_pll.c29 #include <linux/gcd.h>
49 tmp = gcd(*nom, *den); amdgpu_pll_reduce_ratio()
/linux-4.4.14/drivers/media/i2c/
H A Daptina-pll.c22 #include <linux/gcd.h>
55 div = gcd(pll->pix_clock, pll->ext_clock); aptina_pll_calculate()
108 * mf_inc = p1 / gcd(div, p1) (6) aptina_pll_calculate()
147 unsigned int mf_inc = p1 / gcd(div, p1); aptina_pll_calculate()
H A Dsmiapp-pll.c20 #include <linux/gcd.h>
456 i = gcd(pll->pll_op_clk_freq_hz, pll->ext_clk_freq_hz); smiapp_pll_calculate()
/linux-4.4.14/net/netfilter/ipvs/
H A Dip_vs_wrr.c28 #include <linux/gcd.h>
84 g = gcd(weight, g); ip_vs_wrr_gcd_weight()
/linux-4.4.14/drivers/media/tuners/
H A Dmsi001.c19 #include <linux/gcd.h>
225 uitmp = gcd(k_thresh, k_frac); msi001_set_tuner()
H A Dmt2063.c669 * gcd() - Uses Euclid's algorithm
731 ** For each edge (d, c & f), calculate a scale, based on the gcd IsSpurInBand()
733 ** gcd-based scale factor or f_Scale. IsSpurInBand()
/linux-4.4.14/arch/mips/ar7/
H A Dclock.c26 #include <linux/gcd.h>
135 tmp_gcd = gcd(target, tmp_base); calculate()
/linux-4.4.14/drivers/iio/frequency/
H A Dadf4350.c17 #include <linux/gcd.h>
187 div_gcd = gcd(st->r1_mod, st->r0_fract); adf4350_set_freq()
/linux-4.4.14/drivers/gpu/drm/radeon/
H A Dradeon_audio.c25 #include <linux/gcd.h>
563 div = gcd(n, cts); radeon_audio_calc_cts()
H A Dr600_hdmi.c27 #include <linux/gcd.h>
H A Dradeon_display.c38 #include <linux/gcd.h>
917 tmp = gcd(*nom, *den); avivo_reduce_ratio()
/linux-4.4.14/drivers/clk/
H A Dclk-cdce925.c20 #include <linux/gcd.h>
107 g = gcd(rate, parent_rate); cdce925_pll_find_rate()
/linux-4.4.14/sound/soc/codecs/
H A Dadau17x1.c19 #include <linux/gcd.h>
412 j = gcd(i, freq_in); adau17x1_set_dai_pll()
H A Dpcm512x.c25 #include <linux/gcd.h>
705 common = gcd(pll_rate, pllin_rate); pcm512x_find_pll_coeff()
744 common = gcd(10000 * num, den); pcm512x_find_pll_coeff()
H A Dadau1373.c16 #include <linux/gcd.h>
1304 j = gcd(i, freq_in); adau1373_set_pll()
H A Darizona.c14 #include <linux/gcd.h>
1987 gcd_fll = gcd(target, ratio * Fref); arizona_calc_fll()
H A Dwm2200.c19 #include <linux/gcd.h>
1921 gcd_fll = gcd(target, fratio * Fref); fll_factors()
H A Dwm5100.c19 #include <linux/gcd.h>
1741 gcd_fll = gcd(target, fratio * Fref); fll_factors()
H A Dwm8962.c20 #include <linux/gcd.h>
2797 gcd_fll = gcd(target, fratio * Fref); fll_factors()
H A Dwm8996.c19 #include <linux/gcd.h>
1988 gcd_fll = gcd(target, fratio * Fref); fll_factors()
H A Dwm8994.c19 #include <linux/gcd.h>
2122 gcd_fll = gcd(freq_out, freq_in); wm8994_get_fll_config()
/linux-4.4.14/drivers/spi/
H A Dspi-omap2-mcspi.c35 #include <linux/gcd.h>
320 fifo_depth = gcd(t->len, max_fifo_depth); omap2_mcspi_set_fifo()
/linux-4.4.14/drivers/media/platform/soc_camera/
H A Dmx2_camera.c22 #include <linux/gcd.h>
1035 m = gcd(in, out); mx2_emmaprp_resize()
/linux-4.4.14/drivers/media/platform/coda/
H A Dcoda-common.c18 #include <linux/gcd.h>
838 div = gcd(s.numerator, s.denominator); coda_approximate_timeperframe()
/linux-4.4.14/block/
H A Dblk-settings.c10 #include <linux/gcd.h>

Completed in 873 milliseconds