Searched refs:rounding (Results 1 - 5 of 5) sorted by relevance

/haiku-fatelf/src/add-ons/accelerants/ati/
H A Dmach64_util.cpp52 // using the specified rounding (floor (<0), nearest (=0) or ceiling (>0)).
79 int rounding = 0; // Default to floor local
82 rounding = denominator >> 1;
84 rounding = denominator - 1;
87 ((((numerator % denominator) << shift) + rounding) / denominator);
/haiku-fatelf/src/bin/coreutils/lib/
H A Dhuman.c172 int rounding; local
204 rounding = 0;
216 rounding = r2 < divisor ? 0 < r2 : 2 + (divisor < r2);
287 unsigned int r2 = (r10 % base) * 2 + (rounding >> 1);
290 rounding = (r2 < base
291 ? (r2 + rounding) != 0
292 : 2 + (base < r2 + rounding));
300 ? 2 < rounding + (tenths & 1)
301 : inexact_style == human_ceiling && 0 < rounding)
304 rounding
[all...]
/haiku-fatelf/src/bin/findutils/gnulib/lib/
H A Dhuman.c172 int rounding; local
204 rounding = 0;
216 rounding = r2 < divisor ? 0 < r2 : 2 + (divisor < r2);
287 unsigned int r2 = (r10 % base) * 2 + (rounding >> 1);
290 rounding = (r2 < base
291 ? (r2 + rounding) != 0
292 : 2 + (base < r2 + rounding));
300 ? 2 < rounding + (tenths & 1)
301 : inexact_style == human_ceiling && 0 < rounding)
304 rounding
[all...]
/haiku-fatelf/src/apps/mediaplayer/media_node_framework/audio/
H A DAudioVolumeConverter.cpp26 const float rounding)
29 *buffer = (SampleType)(*buffer * volume + rounding);
38 const float volume1, const float volume2, const float rounding)
44 *buffer = (SampleType)(*buffer * volume + rounding);
25 convert(SampleType* buffer, const int32 samples, const float volume, const float rounding) argument
37 convert(SampleType* buffer, const int32 frames, const int32 channels, const float volume1, const float volume2, const float rounding) argument
/haiku-fatelf/src/add-ons/kernel/file_systems/ntfs/libntfs/
H A Dattrib.c2140 s64 rounding = ((wend + bsize - 1) & ~(s64)(bsize - 1)) - wend; local
2151 if (rounding && ((wend == na->initialized_size) ||
2156 rounding += to_write;
2158 cb = ntfs_malloc(rounding);
2163 memset(cb + to_write, 0, rounding - to_write);
2168 rounding, cb, compressed_part,
2172 rounding, cb);
2173 if (written == rounding)

Completed in 131 milliseconds