Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
XDG Integration
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
JennaHuntsman
XDG Integration
Commits
1de78adf
"README.md" did not exist on "3a954ddda398bf0266bce303849495570c6bdae1"
Commit
1de78adf
authored
2 years ago
by
Rye Mutt
Browse files
Options
Downloads
Patches
Plain Diff
More ABI shenanigans for linking havok
parent
4dda1211
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
indra/llcommon/lluuid.cpp
+32
-0
32 additions, 0 deletions
indra/llcommon/lluuid.cpp
indra/llcommon/lluuid.h
+5
-18
5 additions, 18 deletions
indra/llcommon/lluuid.h
with
37 additions
and
18 deletions
indra/llcommon/lluuid.cpp
+
32
−
0
View file @
1de78adf
...
...
@@ -49,6 +49,38 @@
const
LLUUID
LLUUID
::
null
;
const
LLTransactionID
LLTransactionID
::
tnull
;
LLUUID
::
LLUUID
()
{
}
LLUUID
::
LLUUID
(
const
LLUUID
&
rhs
)
{
std
::
memcpy
(
mData
,
rhs
.
mData
,
sizeof
(
mData
));
}
LLUUID
::
LLUUID
(
LLUUID
&&
rhs
)
noexcept
{
std
::
memmove
(
mData
,
rhs
.
mData
,
sizeof
(
mData
));
}
LLUUID
::~
LLUUID
()
{
}
bool
LLUUID
::
operator
==
(
const
LLUUID
&
rhs
)
const
{
__m128i
mm_left
=
load_unaligned_si128
(
mData
);
__m128i
mm_right
=
load_unaligned_si128
(
rhs
.
mData
);
#if defined(__SSE4_1__)
__m128i
mm
=
_mm_xor_si128
(
mm_left
,
mm_right
);
return
_mm_test_all_zeros
(
mm
,
mm
)
!=
0
;
#else
__m128i
mm_cmp
=
_mm_cmpeq_epi32
(
mm_left
,
mm_right
);
return
_mm_movemask_epi8
(
mm_cmp
)
==
0xFFFF
;
#endif
}
/*
NOT DONE YET!!!
...
...
This diff is collapsed.
Click to expand it.
indra/llcommon/lluuid.h
+
5
−
18
View file @
1de78adf
...
...
@@ -54,10 +54,10 @@ class LL_COMMON_API LLUUID
//
// CREATORS
//
LLUUID
()
=
default
;
LLUUID
(
const
LLUUID
&
rhs
)
{
std
::
memcpy
(
mData
,
rhs
.
mData
,
sizeof
(
mData
));
}
LLUUID
(
LLUUID
&&
rhs
)
{
std
::
memmove
(
mData
,
rhs
.
mData
,
sizeof
(
mData
));
}
~
LLUUID
()
{}
LLUUID
();
LLUUID
(
const
LLUUID
&
rhs
)
;
LLUUID
(
LLUUID
&&
rhs
)
noexcept
;
~
LLUUID
()
;
LLUUID
&
operator
=
(
const
LLUUID
&
rhs
)
{
std
::
memcpy
(
mData
,
rhs
.
mData
,
sizeof
(
mData
));
return
*
this
;}
LLUUID
&
operator
=
(
LLUUID
&&
rhs
)
noexcept
{
std
::
memmove
(
mData
,
rhs
.
mData
,
sizeof
(
mData
));
return
*
this
;}
...
...
@@ -133,20 +133,7 @@ class LL_COMMON_API LLUUID
// JC: These must return real bool's (not BOOLs) or else use of the STL
// will generate bool-to-int performance warnings.
bool
operator
==
(
const
LLUUID
&
rhs
)
const
{
__m128i
mm_left
=
load_unaligned_si128
(
mData
);
__m128i
mm_right
=
load_unaligned_si128
(
rhs
.
mData
);
#if defined(__SSE4_1__)
__m128i
mm
=
_mm_xor_si128
(
mm_left
,
mm_right
);
return
_mm_test_all_zeros
(
mm
,
mm
)
!=
0
;
#else
__m128i
mm_cmp
=
_mm_cmpeq_epi32
(
mm_left
,
mm_right
);
return
_mm_movemask_epi8
(
mm_cmp
)
==
0xFFFF
;
#endif
}
bool
operator
==
(
const
LLUUID
&
rhs
)
const
;
bool
operator
!=
(
const
LLUUID
&
rhs
)
const
{
return
!
((
*
this
)
==
rhs
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment