llmath.h File Reference

Useful math constants and macros. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define llisnan(val)   std::isnan(val)
#define llfinite(val)   std::isfinite(val)
#define fsqrtf(x)   ((F32)sqrt((F64)(x)))
#define sqrtf(x)   ((F32)sqrt((F64)(x)))
#define cosf(x)   ((F32)cos((F64)(x)))
#define sinf(x)   ((F32)sin((F64)(x)))
#define tanf(x)   ((F32)tan((F64)(x)))
#define acosf(x)   ((F32)acos((F64)(x)))
#define powf(x, y)   ((F32)pow((F64)(x),(F64)(y)))
#define LL_EXP_INDEX   0
#define LL_MAN_INDEX   1
#define LL_EXP_A   (1048576 * OO_LN2)
#define LL_EXP_C   (60801)
#define LL_FAST_EXP(y)   (LLECO.n.i = llround(F32(LL_EXP_A*(y))) + (1072693248 - LL_EXP_C), LLECO.d)

Functions

BOOL is_approx_zero (F32 f)
BOOL is_approx_equal (F32 x, F32 y)
BOOL is_approx_equal_fraction (F32 x, F32 y, U32 frac_bits)
S32 llabs (const S32 a)
F32 llabs (const F32 a)
F64 llabs (const F64 a)
S32 lltrunc (F32 f)
S32 lltrunc (F64 f)
S32 llfloor (F32 f)
S32 llceil (F32 f)
S32 llround (const F32 val)
F32 llround (F32 val, F32 nearest)
F64 llround (F64 val, F64 nearest)
F32 fastMagnitude (F32 a, F32 b)
F32 llfastpow (const F32 x, const F32 y)
F32 snap_to_sig_figs (F32 foo, S32 sig_figs)
F32 lerp (F32 a, F32 b, F32 u)
F32 lerp2d (F32 x00, F32 x01, F32 x10, F32 x11, F32 u, F32 v)
F32 ramp (F32 x, F32 a, F32 b)
F32 rescale (F32 x, F32 x1, F32 x2, F32 y1, F32 y2)
F32 clamp_rescale (F32 x, F32 x1, F32 x2, F32 y1, F32 y2)
F32 cubic_step (F32 x, F32 x0, F32 x1, F32 s0, F32 s1)
F32 cubic_step (F32 x)
F32 quadratic_step (F32 x, F32 x0, F32 x1, F32 s0, F32 s1)
F32 llsimple_angle (F32 angle)

Variables

const F32 GRAVITY = -9.8f
const F32 F_PI = 3.1415926535897932384626433832795f
const F32 F_TWO_PI = 6.283185307179586476925286766559f
const F32 F_PI_BY_TWO = 1.5707963267948966192313216916398f
const F32 F_SQRT2 = 1.4142135623730950488016887242097f
const F32 F_SQRT3 = 1.73205080756888288657986402541f
const F32 OO_SQRT2 = 0.7071067811865475244008443621049f
const F32 DEG_TO_RAD = 0.017453292519943295769236907684886f
const F32 RAD_TO_DEG = 57.295779513082320876798154814105f
const F32 F_APPROXIMATELY_ZERO = 0.00001f
const F32 F_LN2 = 0.69314718056f
const F32 OO_LN2 = 1.4426950408889634073599246810019f
const F32 FP_MAG_THRESHOLD = 0.0000001f
const F32 FAST_MAG_ALPHA = 0.960433870103f
const F32 FAST_MAG_BETA = 0.397824734759f
const F64 LL_DOUBLE_TO_FIX_MAGIC = 68719476736.0*1.5
const S32 LL_SHIFT_AMOUNT = 16
union {
   double   d
   struct {
      S32   i
      S32   j
   }   n
LLECO


Detailed Description

Useful math constants and macros.

LicenseInfo
firstyear=2000&license=viewergpl

Copyright (c) 2000-2007, Linden Research, Inc.

Second Life Viewer Source Code The source code in this file ("Source Code") is provided by Linden Lab to you under the terms of the GNU General Public License, version 2.0 ("GPL"), unless you have obtained a separate licensing agreement ("Other License"), formally executed by you and Linden Lab. Terms of the GPL can be found in doc/GPL-license.txt in this distribution, or online at http://secondlife.com/developers/opensource/gplv2

There are special exceptions to the terms and conditions of the GPL as it is applied to this Source Code. View the full text of the exception in the file doc/FLOSS-exception.txt in this software distribution, or online at http://secondlife.com/developers/opensource/flossexception

By copying, modifying or distributing this software, you acknowledge that you have read and understood your obligations described above, and agree to abide by those obligations.

ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, COMPLETENESS OR PERFORMANCE. $/LicenseInfo$

Definition in file llmath.h.


Define Documentation

#define acosf ( x   )     ((F32)acos((F64)(x)))

Definition at line 68 of file llmath.h.

Referenced by slerp().

#define cosf ( x   )     ((F32)cos((F64)(x)))

Definition at line 59 of file llmath.h.

Referenced by calc_bouncy_animation(), LLQuaternion::constrain(), gl_arc_2d(), gl_deep_circle(), LLQuaternion::LLQuaternion(), pulse_func(), LLVisualParamHint::render(), LLQuaternion::setQuat(), setup_patch_cosines(), and setup_patch_icosines().

#define fsqrtf ( x   )     ((F32)sqrt((F64)(x)))

Definition at line 52 of file llmath.h.

Referenced by LLKeyframeMotion::applyConstraint(), calc_light_dist(), LLViewerImage::calcDecodePriority(), LLSelectMgr::deselectAllIfTooFar(), dist_vec(), distVec(), LLVector4::magVec(), LLColor4U::magVec(), LLColor4::magVec(), LLVector3::magVec(), LLVector3d::magVec(), LLColor3::magVec(), LLVector2::magVec(), LLVector4::normVec(), LLColor4::normVec(), LLVector3::normVec(), LLVector3d::normVec(), LLColor3::normVec(), LLVector2::normVec(), LLAgent::startAutoPilotGlobal(), LLVOVolume::updateTextures(), LLVOTree::updateTextures(), LLVOGrass::updateTextures(), LLVOAvatar::updateTextures(), and LLWorld::updateVisibilities().

#define LL_EXP_A   (1048576 * OO_LN2)

Definition at line 335 of file llmath.h.

#define LL_EXP_C   (60801)

Definition at line 336 of file llmath.h.

#define LL_EXP_INDEX   0

Definition at line 292 of file llmath.h.

#define LL_FAST_EXP ( y   )     (LLECO.n.i = llround(F32(LL_EXP_A*(y))) + (1072693248 - LL_EXP_C), LLECO.d)

Definition at line 338 of file llmath.h.

Referenced by LLHaze::calcFalloff(), LLVOSky::calcSkyColorInDir(), LLColor3::exp(), llfastpow(), and LLFastLn::pow().

#define LL_MAN_INDEX   1

Definition at line 293 of file llmath.h.

#define llfinite ( val   )     std::isfinite(val)

Definition at line 47 of file llmath.h.

Referenced by add_register_fp(), bytestream2float(), bytestream2quaternion(), bytestream2vector(), bytestream_int2float(), get_register_fp(), LLTemplateMessageReader::getF32(), LLTemplateMessageReader::getF64(), LLNameValue::init(), LLVector4::isFinite(), LLVector3::isFinite(), LLVector3d::isFinite(), LLQuaternion::isFinite(), lscript_global_get(), lscript_local_get(), lscript_pop_float(), safe_instruction_bytestream2float(), LLXform::setPosition(), LLXform::setPositionX(), LLXform::setPositionY(), LLXform::setPositionZ(), LLXform::setRotation(), and LLXform::setScale().

#define llisnan ( val   )     std::isnan(val)

Definition at line 46 of file llmath.h.

#define powf ( x,
y   )     ((F32)pow((F64)(x),(F64)(y)))

Definition at line 72 of file llmath.h.

Referenced by LLVOVolume::calcLightAtPoint(), and LLVOSky::calcSkyColorInDir().

#define sinf ( x   )     ((F32)sin((F64)(x)))

Definition at line 62 of file llmath.h.

Referenced by LLQuaternion::constrain(), LLFastTimerView::draw(), gl_arc_2d(), gl_deep_circle(), LLQuaternion::LLQuaternion(), LLBreatheMotionRot::onUpdate(), LLVisualParamHint::render(), LLQuaternion::setQuat(), LLTreeParams::ShapeRatio(), and slerp().

#define sqrtf ( x   )     ((F32)sqrt((F64)(x)))

Definition at line 55 of file llmath.h.

Referenced by LLQuaternion::constrain(), LLManipRotate::dragConstrained(), LLWorldMapView::drawTrackingCircle(), LLVOSky::generateScatterMap(), LLCamera::getPitch(), LLVoiceClient::getUserVolume(), LLManipRotate::handleMouseDownOnPart(), LLQuaternion::normQuat(), LLManipTranslate::renderGrid(), and LLAgent::startAutoPilotGlobal().

#define tanf ( x   )     ((F32)tan((F64)(x)))

Definition at line 65 of file llmath.h.

Referenced by LLCamera::calculateFrustumPlanes(), LLCamera::calculateFrustumPlanesFromWindow(), and LLViewerCamera::updateCameraLocation().


Function Documentation

F32 clamp_rescale ( F32  x,
F32  x1,
F32  x2,
F32  y1,
F32  y2 
) [inline]

Definition at line 387 of file llmath.h.

References llclamp(), and rescale().

Referenced by LLKeyframeMotion::applyConstraint(), LLFolderView::autoOpenTest(), LLViewerImageList::calcMaxTextureRAM(), LLProgressView::draw(), LLPieMenu::draw(), LLFolderViewItem::draw(), LLSnapshotLivePreview::draw(), LLDebugVarMessageBox::draw(), LLScrollListCtrl::drawItems(), LLAgent::getCameraZoomFraction(), LLFocusMgr::getFocusFlashAmt(), LLToolGun::handleHover(), LLVOAvatar::idleUpdate(), LLFlyAdjustMotion::onUpdate(), LLKeyframeFallMotion::onUpdate(), LLEditingMotion::onUpdate(), LLFontGL::render(), LLHUDIcon::renderIcon(), LLManipTranslate::renderSnapGuides(), LLManipScale::renderSnapGuides(), LLSpeakerMgr::update(), LLVOAvatar::updateCharacter(), LLVOAvatar::updateJointLODs(), and LLVOAvatar::updateShadowFaces().

F32 cubic_step ( F32  x  )  [inline]

Definition at line 413 of file llmath.h.

References llclampf().

F32 cubic_step ( F32  x,
F32  x0,
F32  x1,
F32  s0,
F32  s1 
) [inline]

Definition at line 400 of file llmath.h.

References f.

Referenced by LLMotionController::updateMotionsByType().

F32 fastMagnitude ( F32  a,
F32  b 
) [inline]

Definition at line 269 of file llmath.h.

References llmax(), and llmin().

BOOL is_approx_equal ( F32  x,
F32  y 
) [inline]

Definition at line 96 of file llmath.h.

References S32.

Referenced by LLManipScale::renderSnapGuides().

BOOL is_approx_equal_fraction ( F32  x,
F32  y,
U32  frac_bits 
) [inline]

Definition at line 102 of file llmath.h.

References FALSE, S32, and TRUE.

Referenced by tut::ensure_approximately_equals().

BOOL is_approx_zero ( F32  f  )  [inline]

Definition at line 94 of file llmath.h.

References F_APPROXIMATELY_ZERO.

Referenced by LLManipRotate::dragUnconstrained(), LLTexLayerParamAlpha::getSkip(), LLTexLayer::render(), and LLManipScale::stretchFace().

F32 lerp ( F32  a,
F32  b,
F32  u 
) [inline]

Definition at line 364 of file llmath.h.

Referenced by LLFloaterChat::addChatHistory(), LLKeyframeMotion::applyConstraint(), LLFolderViewFolder::arrange(), LLInventoryModel::backgroundFetch(), LLJointStateBlender::blendJointStates(), LLAgent::calcCameraPositionTargetGlobal(), LLAgent::calcCustomizeAvatarUIOffset(), LLWorldMapView::draw(), LLFloaterTexturePicker::draw(), LLTabContainerVertical::draw(), LLTabContainer::draw(), LLSlider::draw(), LLScrollbar::draw(), LLNetMap::draw(), LLTearOffMenu::draw(), LLMenuHolderGL::draw(), LLFolderViewFolder::draw(), LLFloaterWorldMap::draw(), LLSnapshotLivePreview::draw(), LLFloaterColorPicker::draw(), LLFastTimerView::draw(), LLConsole::draw(), LLButton::draw(), LLViewBorder::drawOnePixelLines(), LLMotion::fadeIn(), LLMotion::fadeOut(), LLTexLayer::findNetColor(), LLPath::generate(), LLVOSky::generateScatterMap(), LLPath::genNGon(), LLProfile::genNGon(), LLProfile::genNormals(), LLTexGlobalColor::getColor(), LLFocusMgr::getFocusColor(), LLSelectMgr::getGrid(), LLMenuGL::handleHover(), LLManipScale::highlightManipulators(), LLVOAvatar::idleUpdate(), LLKeyframeMotion::PositionCurve::interp(), LLKeyframeMotion::ScaleCurve::interp(), LLJointStateBlender::interpolate(), nlerp(), LLFlyAdjustMotion::onUpdate(), LLWalkAdjustMotion::onUpdate(), LLHeadRotMotion::onUpdate(), LLBVHLoader::optimize(), LLVolumeImplFlexible::remapSections(), LLManipRotate::render(), renderTexturePriority(), LLManipTranslate::renderTranslationHandles(), rescale(), LLAgent::resetView(), LLVolumeImplFlexible::setAttributesOfAllSections(), LLUI::setLineWidth(), setup_hud_matrices(), LLPipeline::setupAvatarLights(), LLFollowCam::update(), LLSpeakerMgr::update(), LLHUDText::updateAll(), LLAgent::updateCamera(), LLVOAvatar::updateCharacter(), LLViewerJointMesh::updateGeometryOriginal(), LLVOAvatar::updateHeadOffset(), LLLayoutStack::updateLayout(), LLHUDText::updateSize(), LLDrawable::updateXform(), and LLViewerJointMesh::writeCAL3D().

F32 lerp2d ( F32  x00,
F32  x01,
F32  x10,
F32  x11,
F32  u,
F32  v 
) [inline]

Definition at line 369 of file llmath.h.

References a, b, and r.

F64 llabs ( const F64  a  )  [inline]

Definition at line 133 of file llmath.h.

F32 llabs ( const F32  a  )  [inline]

Definition at line 128 of file llmath.h.

S32 llabs ( const S32  a  )  [inline]

Definition at line 123 of file llmath.h.

References S32.

Referenced by LLKeyframeMotion::applyConstraint(), LLFolderViewFolder::arrange(), LLAgent::calcCameraPositionTargetGlobal(), LLAgent::calcFocusOffset(), LLManipRotate::dragConstrained(), LLManipScale::dragFace(), LLTracker::drawMarker(), LLWorldMapView::drawTrackingArrow(), LLView::findSnapEdge(), LLColumnHeader::findSnapEdge(), LLView::findSnapRect(), LLViewerRegion::getCompositionXY(), LLManip::getMousePointOnPlaneGlobal(), LLPanelFace::getState(), gl_segmented_rect_2d_fragment_tex(), gl_segmented_rect_2d_tex(), LLToolCamera::handleHover(), LLMenuBarGL::handleHover(), LLMenuGL::handleHover(), LLManipTranslate::handleHover(), LLManipRotate::handleMouseDownOnPart(), LLManipTranslate::highlightManipulators(), LLManipRotate::highlightManipulators(), LLToolDragAndDrop::isOverThreshold(), LLViewerWindow::mousePointOnPlaneGlobal(), LLViewerWindow::performPick(), LLFloaterPay::processPayPriceReply(), LLViewerImage::processTextureStats(), LLManipScale::renderAxisHandle(), LLManipTranslate::renderSnapGuides(), LLManipScale::renderSnapGuides(), LLHUDText::renderText(), LLManip::renderTickValue(), LLManipTranslate::renderTranslationHandles(), LLFloaterView::reshape(), LLBufferArray::seek(), LLTextureFetch::sendRequestListToSimulators(), LLDebugVarMessageBox::show(), LLHUDText::updateScreenPos(), LLManipScale::updateSnapGuides(), and LLManipRotate::updateVisiblity().

S32 llceil ( F32  f  )  [inline]

Definition at line 184 of file llmath.h.

References S32.

Referenced by LLFolderView::arrange(), LLVOSurfacePatch::createDrawable(), LLViewerWindow::draw(), LLTearOffMenu::draw(), LLProfile::generate(), LLVolume::generateFaceMask(), LLNotifyBox::getNotifyTipRect(), LLFontGL::maxDrawableChars(), LLViewerWindow::rawSnapshot(), LLFloaterBuyLandUI::refreshUI(), LLFontGL::render(), render_ui_2d(), LLManipScale::renderSnapGuides(), LLViewerWindow::reshape(), LLViewerCamera::setPerspective(), and setup_hud_matrices().

F32 llfastpow ( const F32  x,
const F32  y 
) [inline]

Definition at line 342 of file llmath.h.

References LL_FAST_EXP.

S32 llfloor ( F32  f  )  [inline]

Definition at line 164 of file llmath.h.

References S32.

Referenced by LLProfile::addHole(), LLToolView::addTool(), LLFloaterWorldMap::adjustZoomSliderBounds(), LLViewerTextureAnim::animateTextures(), LLTranspMap::calcAirTransp(), LLFloaterWorldMap::centerOnTarget(), LLFontGL::charFromPixelOffset(), LLPartSysData::clampSourceParticleRate(), LLImageRaw::copyLineScaled(), LLAlertDialog::createDialog(), LLVOSurfacePatch::createDrawable(), LLVolumeFace::createSide(), LLWorldMapView::draw(), LLVoiceRemoteCtrl::draw(), LLGLTexMemBar::draw(), LLTextureBar::draw(), LLStatBar::draw(), LLPreviewTexture::draw(), LLNetMap::draw(), LLHoverView::draw(), LLFrameStatView::draw(), LLFolderViewItem::draw(), LLPanelDeviceSettings::draw(), LLFastTimerView::draw(), LLConsole::draw(), LLTextEditor::drawCursor(), LLTextBox::drawText(), LLWorldMapView::drawTracking(), LLWorldMapView::drawTrackingArrow(), LLSurfacePatch::eval(), F32_to_U16(), F32_to_U8(), LLVorbisDecodeState::finishDecode(), LLFontGL::firstDrawableChar(), LLPath::generate(), LLProfile::generate(), LLVLComposition::generateTexture(), LLWind::getCloudVelocity(), LLManip::getSubdivisionLevel(), LLViewerLayer::getValueScaled(), LLWind::getVelocity(), LLFontGL::getWidthF32(), gl_draw_scaled_image_with_border(), gl_rect_2d_offset_local(), LLWorldMapView::handleMouseUp(), LLVOAvatar::idleUpdate(), LLFontGL::initDefaultFonts(), LLGradientPaletteList::initPalette(), LLChatBar::layout(), LLGroupNotifyBox::LLGroupNotifyBox(), llround(), LLFastLn::ln(), LLFontGL::maxDrawableChars(), LLPanelLandAccess::onCommitAny(), LLFloaterSnapshot::Impl::onCommitCustomResolution(), LLFloaterAnimPreview::onCommitPriority(), LLFloaterSnapshot::Impl::onCommitQuality(), post_show_depth_buffer(), LLFloaterNameDesc::postBuild(), LLViewerWindow::rawSnapshot(), LLPanelActiveSpeakers::refreshSpeakers(), LLFontGL::render(), LLToolBrushLand::renderOverlay(), LLManipTranslate::renderSnapGuides(), LLHUDText::renderText(), LLConsole::reshape(), LLSurface::resolveHeightRegion(), LLPanelGroupVoting::impl::sendStartGroupProposal(), LLAlertDialog::setCheckBox(), LLGradientPaletteList::setHardwarePalette(), LLMotionController::setTimeStep(), LLComboBox::showList(), LLFolderView::startRenamingSelectedItem(), LLViewerJointMesh::updateGeometryOriginal(), LLViewerJointMesh::updateGeometryVectorized(), LLMotionController::updateMotion(), LLWorld::updateNetStats(), LLWorld::updateWaterObjects(), LLWorldMapView::viewPosToGlobal(), windCallback(), and LLViewerJointMesh::writeCAL3D().

F64 llround ( F64  val,
F64  nearest 
) [inline]

Definition at line 246 of file llmath.h.

F32 llround ( F32  val,
F32  nearest 
) [inline]

Definition at line 241 of file llmath.h.

References f.

S32 llround ( const F32  val  )  [inline]

Definition at line 193 of file llmath.h.

References f, and llfloor().

Referenced by LLScrollListCtrl::addColumn(), agent_jump(), agent_push_backward(), agent_push_forward(), agent_slide_left(), agent_slide_right(), LLViewerWindow::analyzeHit(), LLViewerTextureAnim::animateTextures(), LLKeyframeMotion::applyConstraint(), LLMenuGL::arrange(), LLFolderView::arrange(), LLFolderViewFolder::arrange(), LLFloater::buildButtons(), LLViewerWindow::calcDisplayScale(), LLVOVolume::calcLOD(), LLModalDialog::centerOnScreen(), LLWorldMapView::checkItemHit(), clamp_precision(), LLImageRaw::compositeRowScaled4onto3(), LLVOVolume::computeLODDetail(), LLImageRaw::copyLineScaled(), LLVolumeImplFlexible::doIdleUpdate(), LLWorldMapView::draw(), LLViewerWindow::draw(), LLStatGraph::draw(), LLSlider::draw(), LLProgressView::draw(), LLLayoutStack::draw(), LLNetMap::draw(), LLMenuItemBranchDownGL::draw(), LLLineEditor::draw(), LLFolderViewItem::draw(), LLFloaterSnapshot::draw(), LLSnapshotLivePreview::draw(), LLFloater::draw(), LLFastTimerView::draw(), LLComboBox::draw(), LLButton::draw(), LLWorldMapView::drawAvatar(), LLTextEditor::drawClippedSegment(), LLTextEditor::drawCursor(), drawDot(), LLWorldMapView::drawIconName(), LLWorldMapView::drawImage(), LLWorldMapView::drawImageStack(), LLViewerWindow::drawMouselookInstructions(), LLViewerWindow::drawPickBuffer(), LLTextEditor::drawSelectionBackground(), LLTextEditor::drawText(), LLScrollListText::drawToWidth(), LLWorldMapView::drawTracking(), LLNetMap::drawTracking(), LLMessageSystem::dumpReceiveCounts(), LLThrottleGroup::dynamicAdjust(), F32_to_U16_ROUND(), F32_to_U8_ROUND(), LLPanelDisplay::fractionFromDecimal(), LLVLComposition::generateHeights(), LLVLComposition::generateTexture(), LLSurface::generateWaterTexture(), LLProfile::genNGon(), LLFontGL::getAscenderHeight(), LLTextEditor::getCursorPosFromLocalCoord(), LLFontGL::getDescenderHeight(), LLScrollListText::getHeight(), LLFolderViewItem::getItemHeight(), LLFontGL::getLineHeight(), LLMenuItemGL::getNominalHeight(), LLViewerParcelMgr::getPrimInfo(), LLViewerParcelMgr::getSelectedArea(), LLPanelObject::getState(), LLFontGL::getWidth(), LLViewerWindow::handleDoubleClick(), LLScrollableContainerView::handleDragAndDrop(), LLMenuGL::handleHover(), LLLineEditor::handleHover(), LLWorldMapView::handleMouseDown(), LLViewerWindow::handleMouseDown(), LLViewerWindow::handleMouseMove(), LLViewerWindow::handleMouseUp(), LLViewerWindow::handlePerFrameHover(), LLToolSelectRect::handleRectangleSelection(), LLViewerWindow::handleRightMouseDown(), LLViewerWindow::handleRightMouseUp(), LLViewerWindow::hitObjectOrLandGlobalAsync(), LLChatBar::layout(), LLToolBar::layoutButtons(), LLOverlayBar::layoutButtons(), LLTextEditor::LLTextEditor(), LLTextureCtrl::LLTextureCtrl(), LLViewerWindow::LLViewerWindow(), LLFont::loadFace(), LLColor4U::multAll(), LLPanelPick::onClickSet(), LLPanelClassified::onClickSet(), LLBumpImageList::onSourceLoaded(), LLColor4::operator const LLColor4U(), LLVolumeMessage::packPathParams(), LLVolumeMessage::packProfileParams(), LLPrimitive::packTEMessage(), LLViewerWindow::performPick(), LLPanelClassified::processClassifiedInfoReply(), LLPanelEvent::processEventInfoReply(), LLPanelGroupLandMoney::impl::processGroupLand(), LLPanelPlace::processParcelInfoReply(), LLPanelPick::processPickInfoReply(), LLFloaterLandHoldings::processPlacesReply(), LLViewerWindow::rawSnapshot(), LLPanelLandOptions::refresh(), LLManipRotate::render(), LLFontGL::render(), render_ui_2d(), LLNetMap::renderPoint(), LLNetMap::renderScaledPointGlobal(), LLManipTranslate::renderSnapGuides(), LLManipScale::renderSnapGuides(), LLManip::renderTickValue(), LLViewerWindow::reshape(), LLTextEditor::reshape(), LLCheckBoxCtrl::reshape(), LLDragHandleTop::reshapeTitleBox(), LLToolSelectLand::roundXY(), LLFolderView::scrollToShowItem(), LLViewerParcelMgr::selectParcelAt(), LLPanelObject::sendRotation(), LLUI::setCursorPositionScreen(), LLWorldMapView::setDirectionPos(), LLNetMap::setDirectionPos(), LLAudioEngine_FMOD::setInternalGain(), LLAudioEngine_FMOD::setInternetStreamGain(), LLUI::setScissorRegionLocal(), LLUI::setScissorRegionScreen(), LLColor4U::setVecScaleClamp(), snap_to_sig_figs(), to_region_handle(), LLFloaterWorldMap::trackLocation(), LLPreviewTexture::updateAspectRatio(), LLAudioChannelFMOD::updateBuffer(), LLFloater::updateButtons(), LLScrollListCtrl::updateColumns(), LLDrawable::updateDistance(), LLLayoutStack::updateLayout(), LLFloaterWorldMap::updateLocation(), LLFloaterBuyLandUI::updateParcelInfo(), LLCloudGroup::updatePuffCount(), LLSnapshotLivePreview::updateSnapshot(), LLWorld::updateWaterObjects(), LLNetMap::viewPosToGlobal(), and LLViewerParcelMgr::writeHighlightSegments().

F32 llsimple_angle ( F32  angle  )  [inline]

Definition at line 434 of file llmath.h.

References F_PI, and F_TWO_PI.

S32 lltrunc ( F64  f  )  [inline]

Definition at line 159 of file llmath.h.

References S32.

S32 lltrunc ( F32  f  )  [inline]

Definition at line 138 of file llmath.h.

References S32.

Referenced by LLWorldMapView::draw(), LLTracker::drawMarker(), fast_setup(), LLVLComposition::generateTexture(), LLCloudLayer::getDensityRegion(), LLViewerWindow::handlePerFrameHover(), LLChatBar::layout(), LLToolBar::layoutButtons(), LLOverlayBar::layoutButtons(), LLVOTreeNew::llrand_signed(), LLVOTreeNew::llrand_unsigned(), LLPerlinNoise::noise1(), LLViewerCamera::projectPosAgentToScreen(), LLViewerCamera::projectPosAgentToScreenEdge(), LLStatusBar::refresh(), LLManipScale::renderSnapGuides(), LLHUDText::renderText(), LLManip::renderTickValue(), LLVOSurfacePatch::updateGeometry(), LLVOGrass::updateLOD(), LLVOSky::updateReflectionGeometry(), and LLSurfacePatch::updateVisibility().

F32 quadratic_step ( F32  x,
F32  x0,
F32  x1,
F32  s0,
F32  s1 
) [inline]

Definition at line 420 of file llmath.h.

References f.

F32 ramp ( F32  x,
F32  a,
F32  b 
) [inline]

Definition at line 377 of file llmath.h.

Referenced by rescale().

F32 rescale ( F32  x,
F32  x1,
F32  x2,
F32  y1,
F32  y2 
) [inline]

Definition at line 382 of file llmath.h.

References lerp(), and ramp().

Referenced by clamp_rescale(), LLSnapshotLivePreview::draw(), and LLAgent::setCameraZoomFraction().

F32 snap_to_sig_figs ( F32  foo,
S32  sig_figs 
) [inline]

Definition at line 348 of file llmath.h.

References f, llround(), and S32.

Referenced by LLVector3::snap().


Variable Documentation

double d

Definition at line 324 of file llmath.h.

Referenced by LLCamera::AABBInFrustum(), LLCamera::calculateWorldFrustumPlanes(), derez_objects(), LLMessageSystem::generateDigestForNumber(), LLMessageSystem::generateDigestForNumberAndUUIDs(), LLManipTranslate::highlightIntersection(), LLMiscDBInfo::LLMiscDBInfo(), noise3(), LLPerlinNoise::noise3(), planarProjection(), process_improved_im(), ray_tetrahedron(), LLManipTranslate::renderGrid(), LLSelectNode::renderOneSilhouette(), LLManipTranslate::restoreGL(), LLInventoryItem::setDescription(), LLImageGL::setImage(), LLPlane::setVec(), and LLCamera::sphereInFrustum().

const F32 DEG_TO_RAD = 0.017453292519943295769236907684886f

Definition at line 84 of file llmath.h.

Referenced by add_object(), LLPanelFaceSetTEFunctor::apply(), LLFollowCam::calculatePitchSineAndCosine(), LLAgent::cameraOrbitOver(), LLVolumeImplFlexible::doIdleUpdate(), LLManipRotate::dragConstrained(), LLLandBuild::handleEvent(), LLObjectEdit::handleEvent(), LLObjectBuild::handleEvent(), LLToolCamera::handleHover(), LLManipTranslate::handleHover(), LLToolGrab::handleHoverActive(), LLToolGrab::handleHoverInactive(), LLManipRotate::handleMouseDownOnPart(), LLViewerWindow::hitObjectOrLandGlobalAsync(), LLViewerWindow::hitUIElementAsync(), lat2xyz(), LLVOAvatar::loadSkeletonNode(), mayaQ(), LLBodyNoiseMotion::onUpdate(), LLEyeMotion::onUpdate(), LLAgent::pitch(), LLAgent::propagate(), LLVisualParamHint::render(), LLManipRotate::renderSnapGuides(), LLSelectMgr::selectionRotateAroundZ(), LLPanelObject::sendRotation(), toggle_build_mode(), LLAgent::updateCamera(), LLVOAvatar::updateCharacter(), LLVOTree::updateGeometry(), LLAgent::updateLookAt(), and LLVOSky::updateSky().

const F32 F_APPROXIMATELY_ZERO = 0.00001f

Definition at line 86 of file llmath.h.

Referenced by is_approx_zero(), LLVector3::isNull(), LLVector3d::isNull(), LLVector2::isNull(), LLManip::nearestPointOnLineFromMouse(), and LLQuaternion::shortestArc().

const F32 F_LN2 = 0.69314718056f

Definition at line 87 of file llmath.h.

const F32 F_PI = 3.1415926535897932384626433832795f

Definition at line 78 of file llmath.h.

Referenced by angle_between(), LLAgent::autoPilot(), azimuth(), calc_air_sca_sea_level(), calc_bouncy_animation(), LLTranspMap::calcAirTranspDir(), LLVOSky::calcSkyColorInDir(), LLVolumeImplFlexible::doFlexibleUpdate(), LLNetMap::draw(), LLPieMenu::draw(), LLHorizontalCompass::draw(), LLPieMenu::drawBackground(), LLWorldMapView::drawTrackingCircle(), LLPath::generate(), LLVOCloth::generateStrands(), LLPath::genNGon(), LLProfile::genNGon(), LLLandEdit::handleEvent(), LLVOGrass::initClass(), llsimple_angle(), LLAudioEngine::mapWindVecToPan(), LLAudioEngine::mapWindVecToPitch(), LLHUDEffectBeam::render(), LLManipRotate::renderSnapGuides(), LLVolume::sculpt(), send_agent_update(), LLVolumeImplFlexible::setAttributesOfAllSections(), setup_patch_cosines(), setup_patch_icosines(), LLTreeParams::ShapeRatio(), LLJointSolverRP3::solve(), LLViewerPartSourceScript::update(), and LLVOSky::updateHeavenlyBodyGeometry().

const F32 F_PI_BY_TWO = 1.5707963267948966192313216916398f

Definition at line 80 of file llmath.h.

Referenced by calc_bouncy_animation(), LLManipRotate::dragConstrained(), LLManipRotate::dragUnconstrained(), LLNetMap::draw(), LLWorldMapView::drawTrackingCircle(), hud_render_text(), lat2xyz_rad(), LLTargetingMotion::onUpdate(), LLEyeMotion::onUpdate(), LLManipTranslate::renderTranslationHandles(), LLImagePreviewSculpted::rotate(), LLImagePreviewAvatar::rotate(), LLPreviewAnimation::rotate(), and LLVOSky::updateBrightestDir().

const F32 F_SQRT2 = 1.4142135623730950488016887242097f

Definition at line 81 of file llmath.h.

Referenced by LLVOAvatar::computeBodySize(), LLManipScale::edgeToUnitVector(), LLAgent::handleScrollWheel(), LLEditingMotion::onUpdate(), ray_tetrahedron(), and LLWorld::updateVisibilities().

const F32 F_SQRT3 = 1.73205080756888288657986402541f

Definition at line 82 of file llmath.h.

Referenced by LLManipScale::cornerToUnitVector(), LLViewerPartGroup::LLViewerPartGroup(), and ray_tetrahedron().

const F32 F_TWO_PI = 6.283185307179586476925286766559f

Definition at line 79 of file llmath.h.

Referenced by LLHorizontalCompass::draw(), draw_shockwave(), LLWorldMapView::drawTrackingCircle(), gl_arc_2d(), gl_circle_2d(), gl_deep_circle(), gl_washer_2d(), gl_washer_spokes_2d(), LLVOAvatar::idleUpdate(), llsimple_angle(), LLPrimitive::packTEMessage(), LLPrimitive::unpackTEMessage(), LLViewerPartSourceChat::update(), LLViewerPartSourceSpiral::update(), LLViewerPartSourceChat::updatePart(), LLViewerPartSourceSpiral::updatePart(), and windCallback().

const F32 FAST_MAG_ALPHA = 0.960433870103f

Definition at line 257 of file llmath.h.

const F32 FAST_MAG_BETA = 0.397824734759f

Definition at line 258 of file llmath.h.

const F32 FP_MAG_THRESHOLD = 0.0000001f

Definition at line 91 of file llmath.h.

Referenced by LLQuaternion::normQuat(), LLVector4::normVec(), LLVector3::normVec(), LLVector3d::normVec(), and LLVector2::normVec().

const F32 GRAVITY = -9.8f

Definition at line 75 of file llmath.h.

S32 i

Definition at line 330 of file llmath.h.

Referenced by LLStringBase< T >::_makeASCII(), LLCamera::AABBInFrustum(), add_exit_pops(), LLPreviewGesture::addAnimations(), LLBBox::addBBoxAgent(), LLViewerObject::addChild(), LLOctreeState< T >::addChild(), LLStringBase< T >::addCRLF(), VertexCache::AddEntry(), LLFrameStats::addFrameData(), LLGeometryManager::addGeometryCount(), LLParticlePartition::addGeometryCount(), LLProfile::addHole(), LLLocalIDHashMap< DATA_TYPE, SIZE >::addIter(), LLJointStateBlender::addJointState(), LLViewerParcelOverlay::addPropertyLine(), LLPreviewGesture::addSounds(), LLViewerObject::addThisAndAllChildren(), LLViewerObject::addThisAndNonJointChildren(), LLViewerStats::addToMessage(), LLPanelGroupInvite::addUsers(), LLPanelGroupInvite::impl::addUsers(), LLHTTPNode::allNodePaths(), LLPolyMeshSharedData::allocateVertexData(), LLVOVolume::animateTextures(), LLAgent::anyControlGrabbed(), append_node_paths(), LLPanelAvatarClassified::apply(), LLKeyframeMotion::applyKeyframes(), LLUndoWearable::applyUndoRedo(), LLViewerCamera::areVertsVisible(), LLPieMenu::arrange(), LLScriptLibrary::assignExec(), LLGLSLShader::attachObjects(), LLTextEditor::autoIndent(), LLOctreeRoot< T >::balance(), base32_encode(), LLToolDragAndDrop::beginDrag(), LLToolDragAndDrop::beginMultiDrag(), LLViewerKeyboard::bindKey(), LLViewerKeyboard::bindNamedFunction(), LLJointStateBlender::blendJointStates(), LLPipeline::blurReflectionMap(), LLViewerObject::boostTexturePriority(), LLSpatialGroup::boundObjects(), build_copy_matrix(), build_decopy_matrix(), build_patch_dequantize_table(), build_patch_quantize_table(), LLHTTPRegistrar::buildAllServices(), LLFloater::buildButtons(), LLVOAvatar::buildCharacter(), LLFloaterClothing::buildClothingList(), LLPieMenuBranch::buildDrawLabel(), LLFloaterWorldMap::buildLandmarkIDLists(), LLInventoryPanel::buildNewViews(), LLSpatialPartition::buildOcclusion(), LLInventoryModel::buildParentChildMap(), bytestream2uuid(), LLCamera::calcAgentFrustumPlanes(), LLVOSky::calcBrightnessScaleAndColors(), LLAgent::calcCameraMinDistance(), LLSpatialPartition::calcDistance(), LLSurfacePatch::calcNormal(), LLPanelAvatarClassified::canClose(), LLVOAvatar::canGrabLocalTexture(), category_string_to_category(), category_ui_string_to_category(), LLInventoryTransactionObserver::changed(), LLInventoryAddedObserver::changed(), LLFontGL::charFromPixelOffset(), LLUUIDHashMap< DATA_TYPE, SIZE >::check(), LLOctreePick::check(), LLQueuedThread::check(), LLLocalIDHashMap< DATA_TYPE, SIZE >::check(), checkLevelMap(), LLMessageSystem::checkMessages(), LLPanel::checkRequirements(), LLGLState::checkTextureChannels(), clamp_precision(), LLViewerObjectList::cleanDeadObjects(), LLPipeline::cleanup(), LLStdStringTable::cleanup(), LLInventoryView::cleanup(), LLAudioEngine::cleanupBuffer(), LLHUDManager::cleanupEffects(), LLVOSky::cleanupGL(), LLViewerPartSim::cleanupRegion(), LLVolume::cleanupTriangleData(), LLJointStateBlender::clear(), LLAppearance::clear(), LLViewerObjectList::clearDebugText(), LLViewerObject::clearDrawableState(), LLViewerPartSim::clearParticlesByID(), LLPipeline::clearRenderMap(), LLSpatialGroup::clearState(), code_patch(), code_patch_header(), LLInventoryModel::collectDescendentsIf(), LLToolDragAndDrop::commitGiveInventoryCategory(), compress_patch(), LLManipScale::conditionalHighlight(), LLSurface::connectNeighbor(), LLObjectSelection::contains(), LLStringBase< T >::containsNonprintable(), VertexCache::Copy(), CopyFolder(), LLImageRaw::copyLineScaled(), LLPrimitive::copyTEs(), LLImageRaw::copyUnscaled3onto4(), LLImageRaw::copyUnscaled4onto3(), LLSkyTex::create(), LLSurface::create(), LLCloudLayer::create(), LLVolumeFace::createCap(), LLAlertDialog::createDialog(), LLVOVolume::createDrawable(), LLVOTextBubble::createDrawable(), LLVOSky::createDrawable(), LLMenuGL::createJumpKeys(), LLSurface::createPatchData(), LLVolumeFace::createSide(), LLAgent::createStandardWearables(), LLSurface::createSTexture(), LLVolumeFace::createUnCutCubeCap(), LLPanelInventory::createViewsForCategory(), LLVolume::createVolumeFaces(), LLSurface::createWaterTexture(), curl_download_callback(), LLToolDragAndDrop::dad3dUpdateInventoryCategory(), dct_patch(), LLMD5::decode(), decode_patch(), LLImageTGA::decodeAndProcess(), LLImageTGA::decodeColorMap(), LLTemplateMessageReader::decodeData(), decodeLevel(), LLWind::decompress(), decompress_patch(), decompress_patchv(), LLSurface::decompressDCTPatch(), LLGestureList::deleteAll(), LLPtrSkipMap< INDEX_T, DATA_T, BINARY_DEPTH >::deleteAllData(), LLPtrSkipList< DATA_TYPE, BINARY_DEPTH >::deleteAllData(), LLScriptEdCore::deleteBridges(), LLOctreeState< T >::deleteChild(), LLInventoryModel::deleteFromServer(), LLVolumeLODGroup::derefLOD(), LLSelectMgr::deselectObjectAndFamily(), LLSDSerialize::deserialize(), LLMultiGesture::deserialize(), LLKeyframeMotion::deserialize(), LLGestureList::deserialize(), LLOctreeState< T >::destroy(), LLCloudLayer::destroy(), LLSpatialGroup::destroyGL(), LLStandardBumpmap::destroyGL(), LLCubeMap::destroyGL(), LLImageGL::destroyGLTexture(), LLTreeNode< T >::destroyListeners(), LLVOAvatar::detachObject(), LLViewerObjectList::dirtyAllObjectInventory(), LLSurface::dirtyAllPatches(), LLPipeline::dirtyPoolObjectTextures(), LLSurfacePatch::dirtyZ(), LLSurface::disconnectAllNeighbors(), LLCloudLayer::disconnectAllNeighbors(), LLSurfacePatch::disconnectNeighbor(), LLSurface::disconnectNeighbor(), LLTextEditor::doDelete(), LLVolumeImplFlexible::doFlexibleUpdate(), LLCategoryDropDescendentsObserver::done(), LLOutfitFetch::done(), LLRightClickInventoryFetchDescendentsObserver::done(), LLPipeline::doOcclusion(), LLSpatialPartition::doOcclusion(), LLManipRotate::drag(), LLFolderBridge::dragCategoryIntoFolder(), LLTextureView::draw(), LLStatGraph::draw(), LLStatBar::draw(), LLNetMap::draw(), LLPieMenu::draw(), LLMemoryView::draw(), LLLineEditor::draw(), LLFrameStatView::draw(), LLMakeOutfitDialog::draw(), LLMultiFloater::draw(), LLFastTimerView::draw(), LLConsole::draw(), LLFloaterJoystick::draw(), LLPieMenu::drawBackground(), LLVOTree::drawBranchPipeline(), LLWorldMapView::drawImageStack(), LLFloaterIMPanel::dropCategory(), LLVolumeLODGroup::dump(), LLMultiGesture::dump(), LLFrameStats::dump(), dump_prehash_files(), LLVOAvatar::dumpAvatarTEs(), LLLocalIDHashMap< DATA_TYPE, SIZE >::dumpBin(), LLDataPackerBinaryBuffer::dumpBufferToLog(), LLViewerRegion::dumpCache(), LLMemoryView::dumpData(), LLPolyMesh::dumpDiagInfo(), LLKeyframeMotion::JointMotionList::dumpDiagInfo(), LLLocalIDHashMap< DATA_TYPE, SIZE >::dumpIter(), LLVOAvatar::dumpLocalTextures(), LLVFS::dumpLockCounts(), LLMessageSystem::dumpPacketToLog(), LLMessageSystem::dumpReceiveCounts(), LLThrottleGroup::dynamicAdjust(), LLPipeline::enableLights(), LLMD5::encode(), LLImageTGA::encode(), LLImageBMP::encode(), encode_string(), encode_vorbis_file_at(), LLImageJ2COJ::encodeImpl(), LLFileEncoder::encodeURL(), tut::ensure_equals(), tut::HTTPNodeTestData::ensureInArray(), LLWeb::escapeURL(), LLXMLNode::escapeXML(), LLView::escapeXML(), LLCacheName::exportFile(), LLParcel::extendAABB(), LLFolderView::extendSelection(), face_index_from_id(), LLImageRaw::fastFractionalMult(), LLScriptFilePosition::fdotabs(), LLImageRaw::fill(), tut::fillmap(), LLDynamicQueuePtr< Type >::find(), find_file(), LLInventoryModel::findCatUUID(), LLCloudLayer::findCloudGroup(), LLFloaterTexturePicker::findItemID(), LLFloaterLandmark::findItemID(), LLFloaterView::findNeighboringPosition(), LLViewerObjectList::findOrphans(), LLViewerObjectList::findReferences(), LLVorbisDecodeState::finishDecode(), LLInventoryCallbackManager::fire(), LLUUIDHashMapIter< DATA_TYPE, SIZE >::first(), LLLocalIDHashMapIter< DATA_TYPE, SIZE >::first(), LLFontGL::firstDrawableChar(), LLUndoBuffer::flushActions(), LLAPIService::followRemainder(), LLPipeline::forAllDrawables(), LLVOAvatar::forceBakeAllTextures(), LLSDXMLFormatter::format_impl(), LLPolyMesh::freeAllMeshes(), LLPartSysCompressedPacket::fromLLPartInitData(), LLTexLayerSet::gatherAlphaMasks(), LLVOVolume::genBBoxes(), LLVolume::generate(), LLDynamicPath::generate(), LLPath::generate(), LLProfile::generate(), LLVLComposition::generateComposition(), LLVLComposition::generateHeights(), LLPipeline::generateReflectionMap(), LLVolume::generateSilhouetteVertices(), LLVLComposition::generateTexture(), GenerateUniqueHFSUniStr(), LLSurface::generateWaterTexture(), LLPolyMeshSharedData::genIndices(), LLProfile::genNGon(), LLFace::genVolumeBBoxes(), LLUUIDHashMap< DATA_TYPE, SIZE >::get(), LLLocalIDHashMap< DATA_TYPE, SIZE >::get(), get_codec(), LLInventoryView::getActiveInventory(), LLVOAvatar::getAnimLabels(), LLVOAvatar::getAnimNames(), LLWind::getAverage(), LLVOVolume::getBinRadius(), LLXMLNode::getBoolValue(), LLXMLNode::getByteValue(), LLWind::getCloudVelocity(), LLVOAvatar::getCollisionVolumeID(), LLControlGroup::getColor(), LLScrollListItem::getContentsCSV(), LLTextEditor::getCurrentLineAndColumn(), LLFloaterChatterBox::getCurrentVoiceFloater(), LLCloudLayer::getDensityRegion(), LLVolumeLODGroup::getDetailFromTan(), LLXMLNode::getDoubleValue(), LLViewerTextEditor::getEmbeddedText(), LLXMLNode::getFloatValue(), LLAudioEngine::getFreeBuffer(), LLAudioEngine::getFreeChannel(), LLVOTextBubble::getGeometry(), LLTerrainPartition::getGeometry(), LLParticlePartition::getGeometry(), LLVOGrass::getGeometry(), LLFace::getGeometryVolume(), LLAgent::getGroupContribution(), LLAgent::getGroupData(), LLVOAvatar::getHUDBBox(), LLMakeOutfitDialog::getIncludedItems(), LLXMLNode::getIntValue(), LLVOAvatar::getLocalTextureByteCount(), LLXMLNode::getLongValue(), LLStat::getMax(), LLStat::getMaxPerSec(), LLStat::getMean(), LLStat::getMeanDuration(), LLStat::getMeanPerSec(), LLStat::getMin(), LLStat::getMinDuration(), LLStat::getMinPerSec(), LLResMgr::getMonetaryString(), LLOctreeState< T >::getNodeAt(), LLLinkedList< DATA_TYPE >::getNthData(), LLDoubleLinkedList< DATA_TYPE >::getNthData(), LLViewerObject::getNumIndices(), LLViewerObject::getNumVertices(), LLVOAvatar::getOffObject(), LLViewerParcelOverlay::getOwnedRatio(), LLAgent::getPowerInGroup(), LLResMgr::getRes(), LLScriptDataCollection::getSavedSize(), LLMessageStringTable::getString(), LLCategory::getSubCategory(), LLImageRaw::getSubImage(), LLStat::getSum(), LLStat::getSumDuration(), LLFastTimerView::getTime(), LLVolume::getTriangleIndices(), LLXMLNode::getUnsignedValue(), LLXMLNode::getUUIDValue(), LLWind::getVelocity(), LLAgent::getWearableFromWearableItem(), LLFontGL::getWidthF32(), LLToolDragAndDrop::giveInventoryCategory(), gl_rect_2d_checkerboard(), gSetInitDataDefaults(), LLTeleportHandler::handle(), handle_selected_texture_info(), LLToolDragAndDrop::handleCopyProtectedCategory(), LLSpatialGroup::handleDestruction(), LLBeginIMSession::handleEvent(), LLFastTimerView::handleHover(), LLScrollableContainerView::handleKey(), LLToolBrushLand::handleMouseDown(), LLToolSelect::handleObjectSelection(), LLToolSelectRect::handleRectangleSelection(), tut::AlphaNode::handles(), LLScrollableContainerView::handleScrollWheel(), LLTextEditor::handleSpecialKey(), LLScrollableContainerView::handleToolTip(), LLAgent::hasPowerInGroup(), headerCallback(), LLMD5::hex_digest(), LLManipTranslate::highlightIntersection(), LLManipTranslate::highlightManipulators(), LLManipScale::highlightManipulators(), LLSelectMgr::highlightObjectAndFamily(), htonmemcpy(), idct_patch(), LLAudioEngine::idle(), idle_startup(), LLVOTextBubble::idleUpdate(), LLNotecard::importEmbeddedItemsStream(), LLWearable::importFile(), LLCacheName::importFile(), LLParcel::importStream(), VertexCache::InCache(), LLInventoryView::incrementalFind(), LLTextEditor::indentLine(), init(), LLScriptExecute::init(), LLWind::init(), LLSkyTex::init(), LLTranspMap::init(), LLVFSFileBlock::init(), LLTable< T >::init(), LLSkipList< DATA_TYPE, BINARY_DEPTH >::init(), LLPerlinNoise::init(), LLFloater::init(), LLCategory::init(), LLAudioEngine::init(), init_group_list(), init_landmark_menu(), init_supported_expressions(), LLTextureCache::initCache(), LLVOTree::initClass(), LLVOGrass::initClass(), LLViewerImage::initClass(), LLSkyTex::initEmpty(), LLCubeMap::initGL(), LLCubeMap::initGLData(), LLScriptLSOParse::initOpCodePrinting(), LLGradientPaletteList::initPalette(), LLCubeMap::initRawData(), LLVOStars::initStars(), LLTreeNode< T >::insert(), LLOctreeRoot< T >::insert(), LLOctreeState< T >::insert(), inventory_and_asset_types_match(), LLPanelInventory::inventoryChanged(), LLFloaterIMPanel::inviteToSession(), LLParcel::isAgentBlockedFromParcel(), LLVOAvatar::isAnyAnimationSignaled(), LLViewerObject::isChild(), LLFloaterCustomize::isDirty(), LLAggregatePermissions::isEmpty(), LLVolume::isFaceMaskValid(), LLKeywordToken::isHead(), LLAgent::isInGroup(), LLFolderBridge::isItemRemovable(), LLMessageSystem::isMatchingDigestForWindow(), LLMessageSystem::isMatchingDigestForWindowAndUUIDs(), LLScrollListCtrl::isRepeatedChars(), LLViewerObject::isSeat(), LLViewerObjectList::killAllObjects(), LLViewerObjectList::killObjects(), LLToolBar::layoutButtons(), LLOverlayBar::layoutButtons(), LLPanelGroups::leave(), LLVolume::lineSegmentIntersect(), LLAgent::LLAgent(), LLAggregatePermissions::LLAggregatePermissions(), LLApp::LLApp(), LLAttentionSet::LLAttentionSet(), LLBakedUploadData::LLBakedUploadData(), LLCloudLayer::LLCloudLayer(), LLEnum::LLEnum(), LLFastLn::LLFastLn(), LLFastTimerView::LLFastTimerView(), LLFloater::LLFloater(), LLFloaterEventLog::LLFloaterEventLog(), LLFloaterPay::LLFloaterPay(), llgl_dump(), LLHUDEffectBeam::LLHUDEffectBeam(), LLJointStateBlender::LLJointStateBlender(), LLKeyboard::LLKeyboard(), LLLineSegmentAABB(), LLLocalIDHashMap< DATA_TYPE, SIZE >::LLLocalIDHashMap(), LLMakeOutfitDialog::LLMakeOutfitDialog(), LLManipScale::LLManipScale(), LLMessageStringTable::LLMessageStringTable(), LLNameValue::LLNameValue(), LLNotifyBox::LLNotifyBox(), LLPartSysCompressedPacket::LLPartSysCompressedPacket(), LLPtrSkipList< DATA_TYPE, BINARY_DEPTH >::LLPtrSkipList(), LLPtrSkipMap< INDEX_T, DATA_T, BINARY_DEPTH >::LLPtrSkipMap(), LLPtrSkipMapNode< float, LLKeyframeMotion::ScaleKey *, 8 >::LLPtrSkipMapNode(), LLPtrSkipList< DATA_TYPE, BINARY_DEPTH >::LLPtrSkipNode::LLPtrSkipNode(), LLRayAABB(), LLResMgr::LLResMgr(), LLScriptDataCollection::LLScriptDataCollection(), LLScriptEventData::LLScriptEventData(), LLSelectNode::LLSelectNode(), LLSkipMap< INDEX_TYPE, DATA_TYPE, BINARY_DEPTH >::LLSkipMap(), LLSkipMap< INDEX_TYPE, DATA_TYPE, BINARY_DEPTH >::LLSkipMapNode::LLSkipMapNode(), LLSkipList< DATA_TYPE, BINARY_DEPTH >::LLSkipNode::LLSkipNode(), LLSphereAABB(), LLStat::LLStat(), LLStdStringTable::LLStdStringTable(), LLStringTable::LLStringTable(), LLSurface::LLSurface(), LLSurfacePatch::LLSurfacePatch(), LLThrottleGroup::LLThrottleGroup(), LLTransferManager::LLTransferManager(), LLUndoBuffer::LLUndoBuffer(), LLVertexBuffer::LLVertexBuffer(), LLVFS::LLVFS(), LLViewerCamera::LLViewerCamera(), LLViewerKeyboard::LLViewerKeyboard(), LLViewerLayer::LLViewerLayer(), LLViewerParcelMgr::LLViewerParcelMgr(), LLViewerParcelOverlay::LLViewerParcelOverlay(), LLViewerStats::LLViewerStats(), LLViewerThrottleGroup::LLViewerThrottleGroup(), LLVLComposition::LLVLComposition(), LLVOAvatar::LLVOAvatar(), LLVoiceVisualizer::LLVoiceVisualizer(), LLVolumeLODGroup::LLVolumeLODGroup(), LLVOSky::LLVOSky(), LLVOTextBubble::LLVOTextBubble(), LLWindow::LLWindow(), LLWorld::LLWorld(), LLAgentPilot::load(), LLBVHLoader::loadBVHFile(), LLViewerRegion::loadCache(), LLFeatureManager::loadGPUClass(), LLTextEditor::loadKeywords(), LLPolyMeshSharedData::loadMesh(), LLShaderMgr::loadShader(), LLInventoryModel::loadSkeleton(), LLPreviewGesture::loadUIFromGesture(), LLSaleInfo::lookup(), LLInventoryType::lookup(), LLAssetType::lookup(), LLAssetType::lookupHumanReadable(), LLCategory::lookupName(), lsa_bubble_sort(), lsa_decrease_ref_count(), lsa_get_data(), lsa_get_list_ptr(), lscript_pusharge(), lso_print_tabs(), main(), LLStdStringTable::makehash(), LLAgent::makeNewOutfit(), LLSpatialGroup::makeStatic(), LLGLSLShader::mapAttributes(), LLGLSLShader::mapUniform(), LLGLSLShader::mapUniforms(), LLPipeline::markNotCulled(), LLViewerGestureList::matchPrefix(), LLFontGL::maxDrawableChars(), mbcsstring_makeASCII(), LLInventoryModel::messageUpdateCore(), LLToolBrushLand::modifyLandInSelectionGlobal(), LLViewerWindow::mousePointOnLandGlobal(), LLFloater::moveResizeHandlesToFront(), LLManipScale::nearestAxis(), LLUUIDHashMapIter< DATA_TYPE, SIZE >::next(), LLLocalIDHashMapIter< DATA_TYPE, SIZE >::next(), noise2(), LLPerlinNoise::noise2(), noise3(), LLPerlinNoise::noise3(), LLIMMgr::noteOfflineUsers(), notify_cautioned_script_question(), LLViewerParcelMgr::notifyObservers(), LLCacheName::Impl::notifyObservers(), LLTreeNode< T >::notifyRemoval(), LLKeyframeMotionParam::onActivate(), LLHandMotion::onActivate(), LLFloaterCustomize::onBtnMakeOutfit(), LLPanelAvatar::onClickCSR(), LLFloaterAvatarTextures::onClickDump(), LLFloaterEventLog::onClickQuickButton(), LLVOAvatar::onCustomizeEnd(), LLVOAvatar::onCustomizeStart(), LLKeyframeMotionParam::onDeactivate(), LLKeyframeMotionParam::onInitialize(), LLKeyframeMotion::onInitialize(), LLAgent::onInitialWearableAssetArrived(), LLBumpImageList::onSourceLoaded(), LLKeyframeMotionParam::onUpdate(), operator *(), operator *=(), operator!=(), LLDispatchSetEstateAccess::operator()(), operator+=(), operator-=(), LLUUID::operator<(), operator<<(), operator==(), LLUUID::operator>(), ownership_string_to_status(), LLDataPackerAsciiFile::packBinaryData(), LLDataPackerAsciiBuffer::packBinaryData(), LLDataPackerAsciiFile::packBinaryDataFixed(), LLDataPackerAsciiBuffer::packBinaryDataFixed(), LLPrimitive::packTEField(), LLThrottleGroup::packThrottle(), parse_gl_version(), LLColor4U::parseColor4U(), LLSRV::parseResponse(), LLManipScale::partToMaxScale(), LLManipScale::partToMinScale(), LLTextEditor::paste(), LLFolderBridge::pasteFromClipboard(), LLFloaterPay::payDirectly(), LLViewerWindow::performPick(), LLToolDragAndDrop::pickCallback(), LLSimpleHash< HASH_KEY_TYPE, TABLE_SIZE >::pop_element(), CoarseLocationUpdate::post(), post_show_depth_buffer(), LLPanelGroupRoles::postBuild(), LLPanelGroupLandMoney::postBuild(), LLPanelGroup::postBuild(), LLPanelDisplay::postBuild(), LLPanelRegionTextureInfo::postBuild(), LLFloaterLandHoldings::postBuild(), LLPanelLandObjects::postBuild(), LLPipeline::postSort(), LLLineEditor::postvalidateFloat(), prescan_patch(), LLLineEditor::prevalidateFloat(), LLLineEditor::prevalidateInt(), LLLineEditor::prevalidateNonNegativeS32(), LLLineEditor::prevalidatePositiveS32(), print_exit_pops(), LLFace::printDebugInfo(), LLScriptLSOParse::printGlobalFunctions(), LLMemType::printMem(), LLScriptLSOParse::printRegisters(), LLScriptLSOParse::printStates(), process_avatar_animation(), process_kill_object(), process_logout_reply(), process_mean_collision_alert_message(), process_name_value(), process_packet_ack(), process_remove_name_value(), process_script_dialog(), process_script_question(), process_sim_stats(), LLAgent::processAgentGroupDataUpdate(), LLAgent::processAgentInitialWearablesUpdate(), LLVOAvatar::processAvatarAppearance(), LLPanelAvatar::processAvatarGroupsReply(), LLFloaterAvatarPicker::processAvatarPickerReply(), LLInventoryModel::processBulkUpdateInventory(), LLAvatarTracker::processChange(), LLPanelDirBrowser::processDirClassifiedReply(), LLPanelDirBrowser::processDirEventsReply(), LLPanelDirBrowser::processDirGroupsReply(), LLPanelDirBrowser::processDirLandReply(), LLPanelDirBrowser::processDirPeopleReply(), LLPanelDirBrowser::processDirPlacesReply(), LLPanelDirBrowser::processDirPopularReply(), LLRegionEconomy::processEconomyData(), LLGlobalEconomy::processEconomyData(), LLSelectMgr::processForceObjectSelect(), LLOctreeSelect::processGroup(), LLPanelGroupVoting::impl::processGroupActiveProposalItemReply(), LLPanelGroupLandMoney::impl::processGroupLand(), LLGroupMgr::processGroupMembersReply(), LLGroupMgr::processGroupRoleDataReply(), LLGroupMgr::processGroupRoleMembersReply(), LLGroupMgr::processGroupTitlesReply(), LLPanelGroupVoting::impl::processGroupVoteHistoryItemReply(), LLInventoryModel::processInventoryDescendents(), LLInventoryModel::processMoveInventoryItem(), LLPanelGroupNotices::processNotices(), LLAvatarTracker::processNotify(), LLSelectMgr::processObjectProperties(), LLFloaterEventLog::processObjectProperties(), LLViewerObjectList::processObjectUpdate(), LLPipeline::processOcclusion(), LLSpatialPartition::processOcclusion(), LLPanelLandObjects::processParcelObjectOwnersReply(), LLFloaterPay::processPayPriceReply(), LLFloaterLandHoldings::processPlacesReply(), LLVOAvatar::processRebakeAvatarTextures(), LLInventoryModel::processRemoveInventoryFolder(), LLInventoryModel::processRemoveInventoryItem(), LLGroupMoneySalesTabEventHandler::processReply(), LLGroupMoneyDetailsTabEventHandler::processReply(), LLAgent::processScriptControlChange(), LLTextureFetchWorker::processSimulatorPackets(), LLInventoryModel::processUpdateInventoryFolder(), LLViewerObject::processUpdateMessage(), LLCacheName::Impl::processUUIDReply(), LLCacheName::Impl::processUUIDRequest(), LLHUDManager::processViewerEffect(), LLPumpIO::pump(), LLTextureCache::purgeAllTextures(), LLInventoryModel::purgeDescendentsOf(), LLOctreeNode< T >::pushCenter(), pushVerts(), pushVertsColorCoded(), LLViewerPartSim::put(), LLMatrix4::quaternion(), LLMatrix3::quaternion(), randGauss(), LLViewerWindow::rawSnapshot(), LLPartSysCompressedPacket::readAlpha_range(), LLPartSysCompressedPacket::readAlphaScaleDiffEqn_range(), LLTexLayerSetBuffer::readBackAndUpload(), LLPartSysCompressedPacket::readEnvironment(), LLTextureCache::readHeaderCache(), LLPngWrapper::readPng(), LLPartSysCompressedPacket::readScale_range(), LLPartSysCompressedPacket::readSpawn(), LLPartSysCompressedPacket::readVelocityOffset(), LLPartSysCompressedPacket::readWindDiffusionFactor(), LLDynamicQueuePtr< Type >::realloc(), LLSpatialGroup::rebound(), LLVolumeGeometryManager::rebuildGeom(), LLAgent::recoverMissingWearableDone(), LLScriptScript::recurse(), LLScriptListInitializer::recurse(), refr_ind_calc(), LLPanelDisplay3::refreshEnabledState(), LLPanelDisplay2::refreshEnabledState(), LLFloaterProperties::refreshFromItem(), LLPanelRegionTextureInfo::refreshFromRegion(), LLFloaterBuyLandUI::refreshUI(), LLVOVolume::regenFaces(), LLViewerObjectList::relightAllObjects(), tut::HTTPNodeTestData::remainderPath(), LLUUIDHashMap< DATA_TYPE, SIZE >::remove(), LLSelectMgr::remove(), LLLocalIDHashMap< DATA_TYPE, SIZE >::remove(), remove_inventory_category_from_avatar_step2(), LLUUIDHashMap< DATA_TYPE, SIZE >::removeAll(), LLLocalIDHashMap< DATA_TYPE, SIZE >::removeAll(), LLSkipMap< INDEX_TYPE, DATA_TYPE, BINARY_DEPTH >::removeAllData(), LLPtrSkipMap< INDEX_T, DATA_T, BINARY_DEPTH >::removeAllData(), LLSkipList< DATA_TYPE, BINARY_DEPTH >::removeAllNodes(), LLPtrSkipList< DATA_TYPE, BINARY_DEPTH >::removeAllNodes(), LLTaskInvFVBridge::removeBatch(), LLInvFVBridge::removeBatchNoCheck(), LLOctreeState< T >::removeByAddress(), LLTextEditor::removeCharOrTab(), LLViewerObject::removeChild(), LLOctreeState< T >::removeChild(), LLStringBase< T >::removeCRLF(), LLViewerObjectList::removeDrawable(), LLFolderBridge::removeItem(), LLFloaterCompileQueue::removeItemByAssetID(), LLLocalIDHashMap< DATA_TYPE, SIZE >::removeIter(), LLVOAvatar::removeMissingBakedTextures(), LLSpatialGroup::removeObject(), LLViewerPartGroup::removeParticlesByID(), LLFolderView::removeSelectedItems(), LLEmbeddedItems::removeUnusedChars(), LLLocalIDHashMap< DATA_TYPE, SIZE >::removeWithShift(), LLVFS::renameFile(), LLVoiceVisualizer::render(), LLManipRotate::render(), LLHUDEffectBeam::render(), LLFontGL::render(), LLImagePreviewSculpted::render(), LLDrawPoolTerrain::render(), LLDrawPoolSky::render(), LLVOCloth::render(), render_cube_map(), render_disconnected_background(), LLDrawPoolBump::renderActive(), LLRenderPass::renderActive(), LLDrawPoolAlpha::renderAlpha(), LLDrawPoolAlpha::renderAlphaHighlight(), LLDrawPoolAvatar::renderAvatars(), LLTracker::renderBeacon(), LLPipeline::renderBloom(), renderBoundingBox(), LLDrawPoolBump::renderBump(), LLDrawPoolBump::renderBumpActive(), LLVOAvatar::renderCollisionVolumes(), LLManipScale::renderCorners(), LLPipeline::renderDebug(), LLSpatialPartition::renderDebug(), LLManipScale::renderFaces(), LLPipeline::renderForSelect(), LLPipeline::renderGeom(), LLPipeline::renderHighlights(), LLRenderPass::renderInvisible(), LLViewerObjectList::renderObjectBeacons(), LLViewerObjectList::renderObjectsForMap(), LLViewerObjectList::renderObjectsForSelect(), renderOctree(), LLSelectNode::renderOneSilhouette(), LLToolBrushLand::renderOverlay(), renderPoints(), LLViewerParcelOverlay::renderPropertyLines(), LLFace::renderSelectedUV(), LLManipTranslate::renderSnapGuides(), LLManipScale::renderSnapGuides(), LLManipRotate::renderSnapGuides(), LLRenderPass::renderStatic(), LLRenderPass::renderTexture(), LLManipTranslate::renderTranslationHandles(), LLWind::renderVectors(), LLSRV::reorder(), LLError::replaceChar(), LLStringBase< T >::replaceNonstandardASCII(), LLStringBase< T >::replaceTabsWithSpaces(), LLFloaterAvatarList::replaceVars(), LLViewerRegion::requestCacheMisses(), LLStat::reset(), LLStatAccum::impl::reset(), LLFastTimer::reset(), LLDynamicQueuePtr< Type >::reset(), LLThrottleGroup::resetDynamicAdjust(), LLPanelAvatar::resetGroupList(), LLKeyboard::resetKeys(), LLViewerParcelMgr::resetSegments(), LLPipeline::resetVertexBuffers(), LLSurface::resolveNormalGlobal(), LLSurface::resolvePatchRegion(), LLPipeline::restoreGL(), LLVOSky::restoreGL(), LLSkyTex::restoreGL(), LLSpatialPartition::restoreGL(), LLManipTranslate::restoreGL(), LLInventoryClipboard::retrieve(), LLAgent::revertAllWearables(), LLSRV::rewriteURI(), run_calllib(), run_calllib_two_byte(), run_stacktol(), run_stacktos(), LLAgentPilot::save(), LLAgent::saveAllWearables(), LLSelectNode::saveColors(), LLViewerWindow::saveImageNumbered(), LLFloaterCompileQueue::saveItemByAssetID(), LLViewerWindow::saveMovieNumbered(), LLSelectNode::saveTextureScaleRatios(), LLInventoryModel::saveToFile(), LLViewerJoystick::scanJoystick(), LLViewerKeyboard::scanKey(), LLVolume::sculpt(), LLSelectNode::selectAllTEs(), LLTextEditor::selectionContainsLineBreaks(), LLTabContainerVertical::selectTab(), LLTabContainer::selectTab(), LLMail::send(), send_start_session_messages(), LLCircuit::sendAcks(), LLAgent::sendAgentWearablesUpdate(), LLAgent::sendAnimationRequests(), LLHUDManager::sendEffects(), LLPanelRegionTextureInfo::sendUpdate(), LLMultiGesture::serialize(), LLKeyframeMotion::serialize(), LLGestureList::serialize(), LLScriptEventData::set(), LLUUIDHashMap< DATA_TYPE, SIZE >::set(), LLUUID::set(), LLLocalIDHashMap< DATA_TYPE, SIZE >::set(), LLPrimitive::setAllTETextures(), LLVolumeImplFlexible::setAttributesOfAllSections(), LLLocalIDHashMapIter< DATA_TYPE, SIZE >::setBin(), LLFloater::setCanResize(), LLViewerObject::setCanSelect(), LLLineEditor::setCursorAtLocalPos(), LLKeyframeMotionParam::setDefaultKeyframeMotion(), LLViewerObject::setDrawableState(), LLViewerTextEditor::setEmbeddedText(), LLAgent::setGroupContribution(), LLPolyMorphTarget::setInfo(), LLTracker::setLandmarkVisited(), setLevels(), LLKeyframeMotion::setLoopIn(), LLKeyframeMotion::setLoopOut(), LLThrottleGroup::setNominalBPS(), LLViewerObject::setNumTEs(), LLPrimitive::setNumTEs(), LLSurface::setOriginGlobal(), LLKeyframeMotion::setPriority(), LLViewerObject::setRegion(), LLFloater::setResizeLimits(), LLShaderMgr::setShaders(), LLHUDEffectBeam::setSourceObject(), LLTreeNode< T >::setState(), LLVertexBuffer::setStride(), LLImageRaw::setSubImage(), LLFont::setSubImageLuminanceAlpha(), LLPrimitive::setTEArrays(), LLFrameStatView::setup(), LLPipeline::setupAvatarLights(), LLStatusBar::setupDate(), LLAgent::setUserGroupFlags(), LLPrimitive::setVolume(), LLAgent::setWearableName(), LLAgent::setWearableOutfit(), LLViewerPartSim::shift(), LLViewerPartGroup::shift(), LLPipeline::shiftObjects(), LLViewerObjectList::shiftObjects(), LLFloaterJoystick::show(), LLAudioEngine::shutdown(), LLGenePool::spawn(), LLCamera::sphereInFrustum(), LLXmlTreeParser::startElement(), LLAudioEngine::startNextTransfer(), LLVoiceClient::stateMachine(), LLPipeline::stateSort(), LLInventoryClipboard::store(), LLStringBase< T >::stripNonprintable(), LLStatAccum::impl::sum(), LLXmlTreeParser::tabs(), LLPartSysCompressedPacket::toLLPartInitData(), LLOctreeRenderNonOccluded::traverse(), LLOctreeClearOccludedNotActive::traverse(), LLRelightPainter::traverse(), LLOctreeTraveler< T >::traverse(), LLGestureList::trigger(), LLGestureList::triggerAndReviseString(), LLStringBase< T >::trimHead(), LLStringBase< T >::trimTail(), LLTextEditor::tryToRevertToPristineState(), LLWearable::typeNameToType(), LLGLSLShader::unbind(), LLGLSLShader::unload(), LLVertexBuffer::unmapBuffer(), LLParcel::unpackAccessEntries(), LLDataPackerAsciiFile::unpackBinaryData(), LLDataPackerAsciiBuffer::unpackBinaryData(), LLDataPackerAsciiFile::unpackBinaryDataFixed(), LLDataPackerAsciiBuffer::unpackBinaryDataFixed(), LLVLManager::unpackData(), LLDispatcher::unpackMessage(), LLPrimitive::unpackTEField(), LLFloaterTelehub::unpackTelehubInfo(), LLPrimitive::unpackTEMessage(), LLThrottleGroup::unpackThrottle(), LLViewerPartSourceScript::update(), LLGestureManager::update(), LLCRC::update(), update_min_max(), LLHUDText::updateAll(), LLViewerObjectList::updateApparentAngles(), LLFloaterCompileQueue::updateAssetID(), LLVOSky::updateBrightestDir(), LLFloater::updateButtons(), LLViewerJoystick::updateCamera(), LLAgent::updateCamera(), LLPanelGroupGeneral::updateChanged(), LLAudioEngine::updateChannels(), LLViewerRegion::updateCoarseLocations(), LLScrollListCtrl::updateColumns(), LLSurfacePatch::updateCompositionStats(), LLPipeline::updateCull(), LLVOSurfacePatch::updateEastGeometry(), LLHUDManager::updateEffects(), LLViewerJointMesh::updateFaceData(), LLVOVolume::updateFaceFlags(), LLVOSky::updateFog(), LLViewerCamera::updateFrustumPlanes(), LLVOTree::updateGeometry(), LLVOTextBubble::updateGeometry(), LLVOSky::updateGeometry(), LLVOPartGroup::updateGeometry(), LLViewerJointMesh::updateGeometry(), LLFloaterCustomize::updateInventoryUI(), LLVOVolume::updateLighting(), LLScrollListCtrl::updateLineHeight(), LLVOSurfacePatch::updateMainGeometry(), LLPanelGroupMembersSubTab::updateMembers(), LLPanelGroupGeneral::updateMembers(), LLVOAvatar::updateMeshTextures(), LLOctreeNode< T >::updateMinMax(), LLMotionController::updateMotionsByType(), LLPipeline::updateMove(), LLSurfacePatch::updateNormals(), LLSurfacePatch::updateNorthEdge(), LLVOSurfacePatch::updateNorthGeometry(), LLViewerParcelOverlay::updateOverlayTexture(), LLViewerPartGroup::updateParticles(), LLSurface::updatePatchVisibilities(), LLFloaterTools::updatePopup(), LLViewerParcelOverlay::updatePropertyLines(), LLCloudLayer::updatePuffCount(), LLCloudGroup::updatePuffCount(), LLCloudLayer::updatePuffOwnership(), LLCloudGroup::updatePuffOwnership(), LLCloudLayer::updatePuffs(), LLCloudGroup::updatePuffs(), LLFloaterEventLog::updateQuickButtons(), LLViewerPartSim::updateSimulation(), LLPanelGroup::updateTabVisibility(), LLVOVolume::updateTextures(), LLVOTextBubble::updateTextures(), LLVOAvatar::updateTextures(), LLSurfacePatch::updateVerticalStats(), LLViewerJointMesh::uploadJointMatrices(), utf16str_to_wstring(), utf8str_removeCRLF(), utf8str_to_wstring(), uuid2bytestream(), LLUUID::validate(), LLSpatialGroup::validate(), LLOctreeState< T >::validate(), validate_draw_info(), validate_occlusion_list(), LLSpatialGroup::validateDrawMap(), LLPanelRegionTextureInfo::validateTextureSizes(), LLFace::verify(), VertexCache::VertexCache(), LLTrustNet::viewerCommCallback(), LLOctreeDirtyTexture::visit(), LLOctreePick::visit(), LLOctreeRenderNonOccluded::visit(), LLOctreeGet::visit(), LLOctreeDirty::visit(), wchars_to_utf8chars(), wear_inventory_category_on_avatar_step2(), wear_inventory_category_on_avatar_step3(), WinMain(), LLPartSysCompressedPacket::writeAlpha_range(), LLPartSysCompressedPacket::writeAlphaScaleDiffEqn_range(), LLVOVolume::writeCAL3D(), LLVOAvatar::writeCAL3D(), LLViewerJointMesh::writeCAL3D(), LLPartSysCompressedPacket::writeEnvironment(), LLPartSysCompressedPacket::writeFlagByte(), LLDataPackerAsciiFile::writeIndentedName(), LLPngWrapper::writePng(), LLPartSysCompressedPacket::writeScale_range(), LLPartSysCompressedPacket::writeSpawn(), writeToRecorders(), LLPartSysCompressedPacket::writeVelocityOffset(), wstring_to_utf16str(), wstring_to_utf8str(), wstring_utf8_length(), LLFastTimer::~LLFastTimer(), LLFloater::~LLFloater(), LLGenePool::~LLGenePool(), LLKeyframeMotionParam::~LLKeyframeMotionParam(), LLLocalIDHashMap< DATA_TYPE, SIZE >::~LLLocalIDHashMap(), LLOctreeState< T >::~LLOctreeState(), LLPanelDisplay::~LLPanelDisplay(), LLPanelGroup::~LLPanelGroup(), LLPanelGroupRoles::~LLPanelGroupRoles(), LLPolyMesh::~LLPolyMesh(), LLScriptLibrary::~LLScriptLibrary(), LLScrollableContainerView::~LLScrollableContainerView(), LLSpatialPartition::~LLSpatialPartition(), LLStringTable::~LLStringTable(), LLUndoBuffer::~LLUndoBuffer(), LLVertexBuffer::~LLVertexBuffer(), LLViewerPartSim::~LLViewerPartSim(), LLVLManager::~LLVLManager(), and LLVolumeLODGroup::~LLVolumeLODGroup().

S32 j

Definition at line 330 of file llmath.h.

Referenced by LLStringBase< T >::addCRLF(), LLParticlePartition::addGeometryCount(), LLProfile::addHole(), LLJointStateBlender::addJointState(), base32_encode(), LLPipeline::blurReflectionMap(), build_copy_matrix(), build_decopy_matrix(), build_patch_dequantize_table(), build_patch_quantize_table(), LLSurfacePatch::calcNormal(), LLGLState::checkClientArrays(), LLGLState::checkTextureChannels(), code_patch(), code_patch_header(), compress_patch(), LLSkyTex::create(), LLSurface::createPatchData(), LLVolumeFace::createSide(), LLSurface::createSTexture(), LLSurface::createWaterTexture(), LLMD5::decode(), decode_patch(), LLImageTGA::decodeColorMap(), LLWind::decompress(), decompress_patch(), decompress_patchv(), LLSurface::decompressDCTPatch(), LLKeyframeMotion::deserialize(), LLCloudLayer::destroy(), LLSpatialGroup::destroyGL(), LLSpatialPartition::doOcclusion(), LLFrameStatView::draw(), LLFastTimerView::draw(), LLFrameStats::dump(), earlyFail(), LLMD5::encode(), LLImageTGA::encode(), tut::ensure_equals(), LLCloudLayer::findCloudGroup(), LLPipeline::forAllDrawables(), LLVLComposition::generateHeights(), LLVolume::generateSilhouetteVertices(), LLVLComposition::generateTexture(), LLSurface::generateWaterTexture(), LLFace::genVolumeBBoxes(), LLWind::getCloudVelocity(), LLCloudLayer::getDensityRegion(), LLWind::getVelocity(), gl_rect_2d_checkerboard(), LLToolBrushLand::handleMouseDown(), init(), LLScriptExecute::init(), LLPerlinNoise::init(), LLPatchVertexArray::init(), init_supported_expressions(), LLViewerImage::initClass(), LLSkyTex::initEmpty(), LLMatrix4::invert(), LLVolume::lineSegmentIntersect(), LLCloudLayer::LLCloudLayer(), LLBVHLoader::loadBVHFile(), LLPolyMeshSharedData::loadMesh(), lsa_bubble_sort(), main(), LLToolBrushLand::modifyLandInSelectionGlobal(), LLViewerWindow::mousePointOnLandGlobal(), noise2(), LLPerlinNoise::noise2(), noise3(), LLPerlinNoise::noise3(), LLBumpImageList::onSourceLoaded(), operator *(), operator *=(), operator!=(), operator+=(), operator-=(), operator==(), parse_args(), LLPipeline::postSort(), prescan_patch(), LLScriptLSOParse::printStates(), LLSpatialPartition::processOcclusion(), pushVerts(), pushVertsColorCoded(), LLMatrix4::quaternion(), LLMatrix3::quaternion(), LLSpatialGroup::rebound(), LLManipScale::renderCorners(), LLPipeline::renderForSelect(), renderOctree(), LLToolBrushLand::renderOverlay(), LLViewerParcelOverlay::renderPropertyLines(), LLDrawPoolTree::renderTree(), LLWind::renderVectors(), LLFacePool::renderVisibility(), LLStringBase< T >::replaceTabsWithSpaces(), LLGLState::resetTextureStates(), LLSurface::resolveNormalGlobal(), LLSurface::resolvePatchRegion(), LLManipTranslate::restoreGL(), LLTabContainer::selectTab(), LLSurface::setOriginGlobal(), LLFont::setSubImageLuminanceAlpha(), LLGenePool::spawn(), LLStringBase< T >::stripNonprintable(), LLPrimitive::unpackTEField(), LLSurfacePatch::updateCompositionStats(), LLDrawable::updateDistance(), LLSurfacePatch::updateEastEdge(), LLViewerJointMesh::updateFaceData(), LLVOTree::updateGeometry(), LLViewerJointMesh::updateGeometryVectorized(), LLVOSurfacePatch::updateMainGeometry(), LLSurfacePatch::updateNormals(), LLCloudLayer::updatePuffCount(), LLCloudLayer::updatePuffOwnership(), LLCloudLayer::updatePuffs(), LLSpatialBridge::updateSpatialExtents(), LLSurfacePatch::updateVerticalStats(), LLViewerJointMesh::uploadJointMatrices(), LLSpatialGroup::validate(), validate_occlusion_list(), LLSpatialGroup::validateDrawMap(), LLOctreeDirtyTexture::visit(), and LLOctreeRenderNonOccluded::visit().

const F64 LL_DOUBLE_TO_FIX_MAGIC = 68719476736.0*1.5

Definition at line 284 of file llmath.h.

const S32 LL_SHIFT_AMOUNT = 16

Definition at line 285 of file llmath.h.

union { ... } LLECO [static]

struct { ... } n

Referenced by LLCamera::AABBInFrustum(), axtoi(), being_debugged(), LLCamera::calcAgentFrustumPlanes(), LLXMLRPCTransaction::Impl::curlDownloadCallback(), curlOutputCallback(), dct_column(), dct_line(), LLImageBMP::encode(), LLStringBase< T >::format(), tut::SquareNode::get(), tut::IntegerNode::get(), LLUUID::getNodeID(), LLXMLNode::getStringValue(), LLXmlTreeNode::getTextContents(), LLXMLNode::getTextContents(), idct_column(), idct_column_large(), idct_column_large_slow(), idct_line(), idct_line_large(), idct_line_large_slow(), LLPlane::LLPlane(), LLDynamicArrayIndexed< Type, Key, BlockSize >::operator[](), planeFromPoints(), randGauss(), LLInventoryObject::rename(), LLSelectMgr::sendListToRegions(), setup_patch_cosines(), setup_patch_icosines(), LLPlane::setVec(), LLOctreeGet::traverse(), LLQueueNonCulled::traverse(), LLOctreeClearOccludedNotActive::traverse(), LLOctreeCull::traverse(), LLSpatialClearStateDiff::traverse(), LLSpatialSetStateDiff::traverse(), LLRelightPainter::traverse(), tut::IntegerNode::validate(), and wstring_to_utf8str().

const F32 OO_LN2 = 1.4426950408889634073599246810019f

Definition at line 88 of file llmath.h.

const F32 OO_SQRT2 = 0.7071067811865475244008443621049f

Definition at line 83 of file llmath.h.

Referenced by dct_column(), dct_column_large(), dct_line(), dct_line_large(), idct_column(), idct_column_large(), idct_column_large_slow(), idct_line(), idct_line_large(), and idct_line_large_slow().

const F32 RAD_TO_DEG = 57.295779513082320876798154814105f

Definition at line 85 of file llmath.h.

Referenced by LLVOVolume::calcLOD(), LLVolumeImplFlexible::doIdleUpdate(), LLManipRotate::dragConstrained(), LLNetMap::draw(), LLCompass::draw(), LLWorldMapView::drawFrustum(), LLTracker::drawMarker(), LLWorldMapView::drawTrackingArrow(), elevation_from_vector(), LLPreviewLandmark::getDegreesAndDist(), LLAvatarTracker::getDegreesAndDist(), LLPanelObject::getState(), LLPanelFace::getState(), LLManipTranslate::highlightIntersection(), LLPieMenu::pieItemFromXY(), LLPieMenu::pieItemIndexFromXY(), LLManipScale::render(), LLManipRotate::render(), LLManip::renderGuidelines(), LLManipTranslate::renderSnapGuides(), LLManipRotate::renderSnapGuides(), LLManipTranslate::renderTranslationHandles(), LLDrawPoolTree::renderTree(), rotate_quat(), LLViewerCamera::setPerspective(), LLVOTree::setPixelAreaAndAngle(), LLVOPartGroup::setPixelAreaAndAngle(), LLVOGrass::setPixelAreaAndAngle(), LLVOAvatar::setPixelAreaAndAngle(), LLViewerObject::setPixelAreaAndAngle(), LLDebugText::update(), LLFollowCam::updateBehindnessConstraint(), and LLVOAvatar::updateCharacter().


Generated on Thu Jul 1 06:10:31 2010 for Second Life Viewer by  doxygen 1.4.7