Searched refs:max (Results 1 - 25 of 424) sorted by relevance

1234567891011>>

/haiku/src/preferences/screen/
H A DUtility.cpp4 float round(float n, int32 max) argument
6 max = (int32)pow(10, (float)max);
8 n *= max;
12 return (float)tmp / (max);
H A DUtility.h6 extern float round(float n, int32 max);
H A DRefreshSlider.cpp27 RefreshSlider::RefreshSlider(BRect frame, float min, float max, uint32 resizingMode) argument
29 new BMessage(SLIDER_INVOKE_MSG), (int32)rintf(min * 10), (int32)rintf(max * 10),
36 maxRefresh << (uint32)max;
40 SetHashMarkCount(uint32(max - min) / 5 + 1);
H A DRefreshSlider.h19 RefreshSlider(BRect frame, float min, float max, uint32 resizingMode);
H A DRefreshWindow.h21 RefreshWindow(BPoint position, float current, float min, float max);
/haiku/src/apps/debuganalyzer/gui/chart/
H A DChartDataRange.h14 double max; member in class:ChartDataRange
19 max(0)
23 ChartDataRange(double min, double max) argument
26 max(max)
33 max(other.max)
40 return min < max;
45 return max - min;
51 max
[all...]
/haiku/src/apps/icon-o-matic/generic/support/
H A Drgb_hsv.h21 // RGB are each on [0, 1]. S and max are returned on [0, 1] and H is
24 float min, max; local
28 max = R;
31 max = B;
37 max = G;
40 max = B;
45 if (max == min)
46 RETURN_HSV(UNDEFINED, 0, max);
48 float dist = max - min;
61 RETURN_HSV(h, dist/max, ma
[all...]
/haiku/src/system/libnetwork/musl/network/
H A Dinet_ntop.c15 int i, j, max, best; local
39 for (i=best=0, max=2; buf[i]; i++) {
42 if (j>max) best=i, max=j;
44 if (max>3) {
46 memmove(buf+best+2, buf+best+max, i-best-max+1);
/haiku/src/kits/shared/
H A DHSL.cpp19 float max = max_c(max_c(r, g), b); local
22 result.hue = result.saturation = result.lightness = (max + min) / 2;
24 if (max == min) {
28 float diff = max - min;
30 = (result.lightness > 0.5) ? (diff / (2 - max - min)) : (diff / (max + min));
32 if (max == r)
34 else if (max == g)
36 else if (max == b)
/haiku/src/kits/game/
H A DGSUtility.h57 template<typename T, int32 min, int32 max>
62 if (value >= max)
63 return max;
/haiku/src/libs/libtelnet/
H A Dread_password.c77 local_des_read_pw_string(s,max,prompt,verify)
79 int max;
90 if (max > BUFSIZ) {
112 while (!fgets(s, max, stdin));
136 memset(s, 0, max);
148 s[max-1] = 0; /* force termination */
/haiku/src/system/kernel/arch/x86/
H A Darch_timer.cpp69 int max = 0; local
74 max = i;
76 if (timers[j]->get_priority() > timers[max]->get_priority())
77 max = j;
79 if (max != i) {
80 tempPtr = timers[max];
81 timers[max] = timers[i];
/haiku/src/kits/interface/layouter/
H A DComplexLayouter.cpp105 Constraint(int32 start, int32 end, int32 min, int32 max) argument
109 max(max),
112 if (min > max)
113 max = min;
114 effectiveMax = max;
121 if (newMax < max)
122 max = newMax;
123 if (min > max)
124 max
137 int32 max; member in struct:ComplexLayouter::Constraint
146 int32 max; member in struct:ComplexLayouter::SumItem
155 int32 max; member in struct:ComplexLayouter::SumItemBackup
229 int32 max = (int32)_max + 1 - spacing; local
324 int32 max = fSums[fElementCount].max; local
692 int32 max = currentConstraint->effectiveMax; local
[all...]
H A DSimpleLayouter.cpp39 int32 max; member in class:SimpleLayouter::ElementInfo
47 max((int32)B_SIZE_UNLIMITED),
57 max((int32)B_SIZE_UNLIMITED),
67 max = info.max;
151 int32 max = (int32)_max + 1; local
156 info.max = min_c(info.max, max);
348 if (info.max < inf
[all...]
/haiku/src/add-ons/translators/wonderbrush/support/
H A Dsupport.h16 constrain(float& value, float min, float max) argument
20 if (value > max)
21 value = max;
/haiku/src/libs/print/libprint/
H A DJSDSlider.cpp18 BMessage* msg, int32 min, int32 max)
19 : BSlider(name, label, msg, min, max, B_HORIZONTAL)
17 JSDSlider(const char* name, const char* label, BMessage* msg, int32 min, int32 max) argument
/haiku/headers/libs/print/libprint/
H A DJSDSlider.h21 BMessage* msg, int32 min, int32 max);
/haiku/src/apps/soundrecorder/
H A DVUView.cpp186 // get the min and max values in the nibbling interval
187 // and set max to be the greater of the absolute value
190 T min = 0, max = 0; local
194 else if (max < samp[i])
195 max = samp[i];
197 if (-max > (min + 1))
198 max = -min;
200 return max;
211 float max = _ComputeNextLevel<float>(data, size, format, local
213 fCurrentLevels[channel] = (uint8)(max * 12
218 int32 max = _ComputeNextLevel<int32>(data, size, format, local
225 int16 max = _ComputeNextLevel<int16>(data, size, format, local
232 uchar max = _ComputeNextLevel<uchar>(data, size, format, local
239 char max = _ComputeNextLevel<char>(data, size, format, local
[all...]
/haiku/src/bin/
H A Dlistport.c50 int32 max = 0, used = 0, left; local
54 max = sys.max_ports;
58 left = max - used;
63 max,
H A Dlistarea.c28 int32 max = 0, used = 0; local
33 max = info.max_pages * 4;
38 B_PRId32 "KB\n", max, used, max - used);
/haiku/src/tests/kits/interface/layout/widget_layout_test/
H A DGroupView.cpp18 int32 max; member in struct:GroupView::LayoutInfo
24 max(B_SIZE_UNLIMITED),
33 if (addMax <= max)
34 max = (int32)addMax + 1;
41 if (max < min)
42 max = min;
45 if (preferred > max)
46 preferred = max;
196 // collect the children's min/max constraints
204 BSize max local
[all...]
/haiku/src/add-ons/kernel/file_systems/ntfs/libntfs/
H A Dsupport.h46 * The classic min and max macros.
52 #ifndef max
53 #define max(a,b) ((a) >= (b) ? (a) : (b)) macro
/haiku/src/apps/terminal/
H A DTermScrollView.cpp21 float min, float max, orientation direction)
23 BScrollBar(frame, name, target, min, max, direction)
20 TermScrollBar(BRect frame, const char *name, BView *target, float min, float max, orientation direction) argument
/haiku/src/apps/haikudepot/ui_generic/
H A DScrollableGroupView.cpp52 float max = layoutHeight- viewHeight; local
53 scrollBar->SetRange(0, max);
/haiku/headers/private/binary_compatibility/
H A DInterface.h36 float max; member in struct:perform_data_get_height_for_width

Completed in 440 milliseconds

1234567891011>>