| /freebsd/usr.sbin/virtual_oss/virtual_oss/ |
| H A D | audio_delay.c | 133 voss_ad.sin_a[x] = sin(freq * 2.0 * M_PI * ((double)x) / ((double)len)); in voss_ad_init() 134 voss_ad.cos_a[x] = cos(freq * 2.0 * M_PI * ((double)x) / ((double)len)); in voss_ad_init() 140 voss_ad.wave[x] = sin(freq * 2.0 * M_PI * ((double)x) / ((double)len)) * in voss_ad_init() 141 (1.0 + sin(2.0 * M_PI * ((double)x) / ((double)samples))) / 2.0; in voss_ad_init() 143 voss_ad.sin_b[x] = sin(2.0 * M_PI * ((double)x) / ((double)samples)); in voss_ad_init() 144 voss_ad.cos_b[x] = cos(2.0 * M_PI * ((double)x) / ((double)samples)); in voss_ad_init() 182 r = (2.0 * M_PI) - r; in voss_add_decode_offset() 185 r = M_PI + r; in voss_add_decode_offset() 188 r = M_PI - r; in voss_add_decode_offset() 230 …voss_ad_last_delay = (uint32_t)(phase * (double)(voss_ad.len_b) / (2.0 * M_PI)) - (voss_ad.len_a /… in voss_ad_getput_sample()
|
| /freebsd/contrib/netbsd-tests/lib/libm/ |
| H A D | t_atan.c | 42 { T_LIBM_MINUS_INF, -M_PI / 2 }, 43 { T_LIBM_PLUS_INF, M_PI / 2 }, 47 { -1, -M_PI / 4, }, 50 { 1, M_PI / 4, },
|
| H A D | t_asin.c | 40 { -1.0, -M_PI / 2, }, 42 { -0.5, -M_PI / 6, }, 45 { 0.5, M_PI / 6, }, 47 { 1.0, M_PI / 2, },
|
| H A D | t_acos.c | 68 { -1, M_PI, }, 72 { 0, M_PI / 2, },
|
| H A D | t_casinh.c | 25 { +5.032E3, +INFINITY, +INFINITY, +M_PI/2}, 27 { +INFINITY, +INFINITY, +INFINITY, +M_PI/4},
|
| /freebsd/lib/virtual_oss/bt/cosdata-gen/ |
| H A D | cosdata.c | 108 S[i][k] = cosf((float)((i + 0.5) * (k - 4) * (M_PI / 8.0))); in main() 126 S[i][k] = cosf((float)((i + 0.5) * (k - 2) * (M_PI / 4.0))); in main() 144 S[i][k] = cosf((float)((i + 0.5) * (k + 4) * (M_PI / 8.0))); in main() 162 S[i][k] = cosf((float)((i + 0.5) * (k + 2) * (M_PI / 4.0))); in main()
|
| /freebsd/lib/msun/tests/ |
| H A D | ctrig_test.c | 237 0, M_PI / 4, 3 * M_PI / 4, 5 * M_PI / 4, in ATF_TC_BODY() 309 M_PI / 4, M_PI / 2, 3 * M_PI / 4, in ATF_TC_BODY() 310 5 * M_PI / 4, 3 * M_PI / 2, 7 * M_PI / 4, in ATF_TC_BODY()
|
| H A D | nearbyint_test.c | 61 { M_PI, { 3.0, 3.0, 4.0 }},
|
| H A D | fma_test.c | 170 testall(M_PI, M_PI, NAN, NAN, ALL_STD_EXCEPT, 0); in test_nans()
|
| H A D | cexp_test.c | 244 M_LN2, M_PI, -2.0, 0.0, in ATF_TC_BODY()
|
| /freebsd/lib/msun/src/ |
| H A D | s_cospif.c | 38 #define __kernel_cospif(x) (__kernel_cosdf(M_PI * (x))) 39 #define __kernel_sinpif(x) (__kernel_sindf(M_PI * (x)))
|
| H A D | s_tanpif.c | 47 t = __kernel_tandf(M_PI * x, 1); in __kernel_tanpif() 49 t = -__kernel_tandf(M_PI * (0.5 - x), -1); in __kernel_tanpif()
|
| H A D | s_sinpif.c | 39 #define __kernel_cospif(x) (__kernel_cosdf(M_PI * (x))) 40 #define __kernel_sinpif(x) (__kernel_sindf(M_PI * (x)))
|
| H A D | math.h | 132 #define M_PI 3.14159265358979323846 /* pi */ macro
|
| /freebsd/lib/msun/bsdsrc/ |
| H A D | b_tgamma.c | 333 lsine = __log__D(M_PI / z); /* = TRUNC(log(u)) + small */ in neg_gam() 350 return (M_PI / (y * z)); in neg_gam()
|
| /freebsd/sys/tools/sound/ |
| H A D | feeder_rate_mkfilter.awk | 243 x = (M_PI * i) / (1.0 * num); 264 x = (M_PI * i) / nm; 615 M_PI = atan2(0.0, -1.0);
|
| H A D | feeder_eq_mkfilter.awk | 85 return ((2.0 * M_PI * fc) / (1.0 * rate)); 259 M_PI = atan2(0.0, -1.0);
|
| /freebsd/usr.bin/calendar/ |
| H A D | sunpos.c | 45 #define D2R(m) ((m) / 180 * M_PI) 46 #define R2D(m) ((m) * 180 / M_PI)
|
| /freebsd/usr.sbin/virtual_oss/virtual_equalizer/ |
| H A D | equalizer.c | 85 return (0.5 + 0.5 * cos(M_PI * x)); in equalizer_get_window()
|
| /freebsd/contrib/ntp/ntpd/ |
| H A D | ntp_timer.c | 629 leap_smear.doffset = -((double) lsdata.tai_diff - cos( M_PI * leap_smear_time / leap_smear.interval)) / 2.0; in check_leapsec()
|
| /freebsd/contrib/llvm-project/clang/lib/Headers/ |
| H A D | opencl-c-base.h | 315 #define M_PI 0x1.921fb54442d18p+1 macro
|
| /freebsd/contrib/sqlite3/ |
| H A D | sqlite3.c | 132813 #ifndef M_PI 132814 # define M_PI 3.141592653589793238462643383279502884 132935 static double degToRad(double x){ return x*(M_PI/180.0); } 132936 static double radToDeg(double x){ return x*(180.0/M_PI); } 132995 sqlite3_result_double(context, M_PI);
|