This answer was confusing so I wanted to provide some more detail in a different way.
Lets assume you have your data in array P and you are checking against Line U. p_0 is the most left lowest point. I.e p_0.x < p_i.x and in ties ensure p_0.y < p_i.y. P is sorted in ccw like most ConvexHulls are. You also have p_m where m is the half way point i.e n/2 at first. We define L,M,H as our binary search indices with L = 0, M = n/2, H = n-1. I'm going to write recursion but you could unroll this.
Base case:
Is the "polygon" array has n<= 3 points. In this case just check every line in the triangle or line for intersection with U O(1).
Recursive Step:
Do L_m = Line(p_0, p_m) intersect with U to find p_I, O(1).
If p_I is NULL we know that U is ccw or cw from L_m you can use a directed Orientation Test to find which in O(1). If its ccw, recurse with ConvexLineInt({p_0,p_m,...,p_h},U) else ConvexLineInt({p_0,p_l,...,p_m},U).
If p_I exists it must occur among the line L_m i.e it is in a fully ordered set and we check these cases:
L_m.0 <= p_I <= L_m.1 (in between) => return Line intersects
p_I < L_m.0 i.e is to the left of the polygon. We calculate p_U which is U intersects with L_0= Line(p_0, p_l), O(1). If p_U is NULL that means the Line U is outside the polygon. This means U is ccw to L_0. Since p_U exists we can check Orient(L_m, p_U)=w this cannot be 0 since there is an intersection. If w > 0 the intersection is ccw i.e U can only be ccw to L_m and we can recurse as we did above on the "right" set. otherwise the point is below and U can only be cw to L_m recurse on the "left" set Notice we always keep p_0 its a pivot point for us.
p_I > L_m.1 should be symmetric and I'll leave as an exercise
Since every check is O(1) and we are dividing the set into two or so the run time is that of binary search i.e O(log n). Use Master's Theorem if you want to be formal.
Hopefully this is helpful!
Orient test: How to tell whether a point is to the right or left side of a line
Finding an intersection of 2 lines:
https://en.wikipedia.org/wiki/Line%E2%80%93line_intersection