Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 1ac5474

Browse files
Mike KleinSkia Commit-Bot
authored andcommitted
split up ==/!= for C++20
Change-Id: Iddced1112600bd2692e5004ff5ed07fb540331d7 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/290847 Reviewed-by: Brian Osman <[email protected]> Commit-Queue: Mike Klein <[email protected]>
1 parent 40b4de2 commit 1ac5474

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

src/core/SkVM.h

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -871,11 +871,13 @@ namespace skvm {
871871
static inline I32 max(I32 x, I32a y) { return x->max(x,y); }
872872
static inline I32 max(int x, I32 y) { return y->max(x,y); }
873873

874-
static inline I32 operator==(I32 x, I32a y) { return x->eq(x,y); }
875-
static inline I32 operator==(int x, I32 y) { return y->eq(x,y); }
874+
static inline I32 operator==(I32 x, I32 y) { return x->eq(x,y); }
875+
static inline I32 operator==(I32 x, int y) { return x->eq(x,y); }
876+
static inline I32 operator==(int x, I32 y) { return y->eq(x,y); }
876877

877-
static inline I32 operator!=(I32 x, I32a y) { return x->neq(x,y); }
878-
static inline I32 operator!=(int x, I32 y) { return y->neq(x,y); }
878+
static inline I32 operator!=(I32 x, I32 y) { return x->neq(x,y); }
879+
static inline I32 operator!=(I32 x, int y) { return x->neq(x,y); }
880+
static inline I32 operator!=(int x, I32 y) { return y->neq(x,y); }
879881

880882
static inline I32 operator< (I32 x, I32a y) { return x->lt(x,y); }
881883
static inline I32 operator< (int x, I32 y) { return y->lt(x,y); }
@@ -908,11 +910,13 @@ namespace skvm {
908910
static inline F32 max(F32 x, F32a y) { return x->max(x,y); }
909911
static inline F32 max(float x, F32 y) { return y->max(x,y); }
910912

911-
static inline I32 operator==(F32 x, F32a y) { return x->eq(x,y); }
912-
static inline I32 operator==(float x, F32 y) { return y->eq(x,y); }
913+
static inline I32 operator==(F32 x, F32 y) { return x->eq(x,y); }
914+
static inline I32 operator==(F32 x, float y) { return x->eq(x,y); }
915+
static inline I32 operator==(float x, F32 y) { return y->eq(x,y); }
913916

914-
static inline I32 operator!=(F32 x, F32a y) { return x->neq(x,y); }
915-
static inline I32 operator!=(float x, F32 y) { return y->neq(x,y); }
917+
static inline I32 operator!=(F32 x, F32 y) { return x->neq(x,y); }
918+
static inline I32 operator!=(F32 x, float y) { return x->neq(x,y); }
919+
static inline I32 operator!=(float x, F32 y) { return y->neq(x,y); }
916920

917921
static inline I32 operator< (F32 x, F32a y) { return x->lt(x,y); }
918922
static inline I32 operator< (float x, F32 y) { return y->lt(x,y); }

0 commit comments

Comments
 (0)